forked from mirrors/nixpkgs
e3c1b8782a
Also add imports tests as we can't do more using the pip release
34 lines
745 B
Nix
34 lines
745 B
Nix
{ lib, buildPythonPackage, fetchPypi, msgpack }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "fluent-logger";
|
|
version = "0.9.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "a7d47eae4d2a11c8cb0df10ae3d034d95b0b8cef9d060e59e7519ad1f82ffa73";
|
|
};
|
|
|
|
prePatch = ''
|
|
substituteInPlace setup.py \
|
|
--replace "msgpack<1.0.0" "msgpack"
|
|
'';
|
|
|
|
propagatedBuildInputs = [ msgpack ];
|
|
|
|
# Tests fail because absent in package
|
|
doCheck = false;
|
|
pythonImportsCheck = [
|
|
"fluent"
|
|
"fluent.event"
|
|
"fluent.handler"
|
|
"fluent.sender"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "A structured logger for Fluentd (Python)";
|
|
homepage = "https://github.com/fluent/fluent-logger-python";
|
|
license = licenses.asl20;
|
|
};
|
|
}
|