2018-07-30 21:46:03 +01:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, msgpack }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "fluent-logger";
|
2020-05-09 11:01:48 +01:00
|
|
|
version = "0.9.6";
|
2018-07-30 21:46:03 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-05-09 11:01:48 +01:00
|
|
|
sha256 = "a7d47eae4d2a11c8cb0df10ae3d034d95b0b8cef9d060e59e7519ad1f82ffa73";
|
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;
|
|
|
|
};
|
|
|
|
}
|