2024-03-08 02:40:11 +01:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
|
|
|
|
# build-system
|
|
|
|
hatchling,
|
|
|
|
|
|
|
|
# dependencies
|
|
|
|
msgpack,
|
|
|
|
|
|
|
|
# tests
|
|
|
|
pytestCheckHook,
|
|
|
|
}:
|
2018-07-30 16:46:03 -04:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "fluent-logger";
|
2024-06-19 05:05:37 +02:00
|
|
|
version = "0.11.1";
|
2024-03-08 02:40:11 +01:00
|
|
|
pyproject = true;
|
2018-07-30 16:46:03 -04:00
|
|
|
|
2024-03-08 02:40:11 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "fluent";
|
|
|
|
repo = "fluent-logger-python";
|
|
|
|
rev = "refs/tags/v${version}";
|
2024-06-19 05:05:37 +02:00
|
|
|
hash = "sha256-i6S5S2ZUwC5gQPdVjefUXrKj43iLIqxd8tdXbMBJNnA=";
|
2018-07-30 16:46:03 -04:00
|
|
|
};
|
|
|
|
|
2024-03-08 02:40:11 +01:00
|
|
|
build-system = [ hatchling ];
|
2020-09-11 14:08:39 +02:00
|
|
|
|
2024-03-08 02:40:11 +01:00
|
|
|
dependencies = [ msgpack ];
|
|
|
|
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2020-08-25 12:07:09 +10:00
|
|
|
|
2020-09-11 14:08:39 +02:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"fluent"
|
|
|
|
"fluent.event"
|
|
|
|
"fluent.handler"
|
|
|
|
"fluent.sender"
|
|
|
|
];
|
2018-07-30 16:46:03 -04:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Structured logger for Fluentd (Python)";
|
2020-03-31 21:11:51 -04:00
|
|
|
homepage = "https://github.com/fluent/fluent-logger-python";
|
2018-07-30 16:46:03 -04:00
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
}
|