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