1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, poetry-core
5, pythonOlder
6}:
7
8buildPythonPackage rec {
9 pname = "logging-journald";
10 version = "0.6.5";
11 format = "pyproject";
12
13 disabled = pythonOlder "3.7";
14
15 src = fetchFromGitHub {
16 owner = "mosquito";
17 repo = pname;
18 rev = "refs/tags/${version}";
19 hash = "sha256-EyKXc/Qr9mRFngDqbCPNVs/0eD9OCbQq0FbymA6kpLQ=";
20 };
21
22 nativeBuildInputs = [
23 poetry-core
24 ];
25
26 # Circular dependency with aiomisc
27 doCheck = false;
28
29 pythonImportsCheck = [
30 "logging_journald"
31 ];
32
33 meta = with lib; {
34 description = "Logging handler for writing logs to the journald";
35 homepage = "https://github.com/mosquito/logging-journald";
36 license = licenses.mit;
37 maintainers = with maintainers; [ fab ];
38 };
39}