2018-07-30 22:46:03 +02:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, msgpack }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "fluent-logger";
|
2021-03-13 00:49:56 +01:00
|
|
|
version = "0.10.0";
|
2018-07-30 22:46:03 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-03-13 00:49:56 +01:00
|
|
|
sha256 = "678bda90c513ff0393964b64544ce41ef25669d2089ce6c3b63d9a18554b9bfa";
|
2018-07-30 22:46:03 +02:00
|
|
|
};
|
|
|
|
|
2020-09-11 14:08:39 +02:00
|
|
|
prePatch = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace "msgpack<1.0.0" "msgpack"
|
|
|
|
'';
|
|
|
|
|
2018-07-30 22:46:03 +02:00
|
|
|
propagatedBuildInputs = [ msgpack ];
|
2020-08-25 04:07:09 +02:00
|
|
|
|
2018-07-30 22:46:03 +02:00
|
|
|
# Tests fail because absent in package
|
|
|
|
doCheck = false;
|
2020-09-11 14:08:39 +02:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"fluent"
|
|
|
|
"fluent.event"
|
|
|
|
"fluent.handler"
|
|
|
|
"fluent.sender"
|
|
|
|
];
|
2018-07-30 22:46:03 +02:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A structured logger for Fluentd (Python)";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/fluent/fluent-logger-python";
|
2018-07-30 22:46:03 +02:00
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
}
|