depot/third_party/nixpkgs/pkgs/development/python-modules/fluent-logger/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

46 lines
824 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 = "Structured logger for Fluentd (Python)";
homepage = "https://github.com/fluent/fluent-logger-python";
license = licenses.asl20;
};
}