1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5
6 # build-system
7 hatchling,
8
9 # dependencies
10 msgpack,
11
12 # tests
13 pytestCheckHook,
14}:
15
16buildPythonPackage rec {
17 pname = "fluent-logger";
18 version = "0.11.1";
19 pyproject = true;
20
21 src = fetchFromGitHub {
22 owner = "fluent";
23 repo = "fluent-logger-python";
24 tag = "v${version}";
25 hash = "sha256-i6S5S2ZUwC5gQPdVjefUXrKj43iLIqxd8tdXbMBJNnA=";
26 };
27
28 build-system = [ hatchling ];
29
30 dependencies = [ msgpack ];
31
32 nativeCheckInputs = [ pytestCheckHook ];
33
34 pythonImportsCheck = [
35 "fluent"
36 "fluent.event"
37 "fluent.handler"
38 "fluent.sender"
39 ];
40
41 meta = with lib; {
42 description = "Structured logger for Fluentd (Python)";
43 homepage = "https://github.com/fluent/fluent-logger-python";
44 license = licenses.asl20;
45 };
46}