fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
46 lines
826 B
Nix
46 lines
826 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
|
|
# build-system
|
|
hatchling,
|
|
|
|
# dependencies
|
|
msgpack,
|
|
|
|
# tests
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "fluent-logger";
|
|
version = "0.11.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "fluent";
|
|
repo = "fluent-logger-python";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-PfyjJZT5K/IMsyyWNZdh/CZf+uZHeJGfhyAPuu0IhJk=";
|
|
};
|
|
|
|
build-system = [ hatchling ];
|
|
|
|
dependencies = [ msgpack ];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [
|
|
"fluent"
|
|
"fluent.event"
|
|
"fluent.handler"
|
|
"fluent.sender"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "A structured logger for Fluentd (Python)";
|
|
homepage = "https://github.com/fluent/fluent-logger-python";
|
|
license = licenses.asl20;
|
|
};
|
|
}
|