2020-04-24 23:36:52 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, msgpack }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "fluent-logger";
|
2021-03-15 08:37:03 +00:00
|
|
|
version = "0.10.0";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-03-15 08:37:03 +00:00
|
|
|
sha256 = "678bda90c513ff0393964b64544ce41ef25669d2089ce6c3b63d9a18554b9bfa";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
prePatch = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace "msgpack<1.0.0" "msgpack"
|
|
|
|
'';
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [ msgpack ];
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
# Tests fail because absent in package
|
|
|
|
doCheck = false;
|
2020-09-25 04:45:31 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"fluent"
|
|
|
|
"fluent.event"
|
|
|
|
"fluent.handler"
|
|
|
|
"fluent.sender"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A structured logger for Fluentd (Python)";
|
|
|
|
homepage = "https://github.com/fluent/fluent-logger-python";
|
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
}
|