diff options
author | Martin Weinelt <hexa@darmstadt.ccc.de> | 2023-03-04 01:42:06 +0000 |
---|---|---|
committer | Martin Weinelt <hexa@darmstadt.ccc.de> | 2023-03-04 01:42:06 +0000 |
commit | d0286ecd24f6da3f220ec848763ab3fcd262369d (patch) | |
tree | 7c8ea640da4318dc2dd126dcb33e5dc7ef50335a /pkgs/development/python-modules/logbook/default.nix | |
parent | a52e4232ce75ba5567be618c1757f8d8584a7061 (diff) | |
parent | fe71770e828197b0f8581ea5d604abe7b82dc762 (diff) |
Merge remote-tracking branch 'origin/staging' into staging-next
Diffstat (limited to 'pkgs/development/python-modules/logbook/default.nix')
-rw-r--r-- | pkgs/development/python-modules/logbook/default.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/logbook/default.nix b/pkgs/development/python-modules/logbook/default.nix new file mode 100644 index 0000000000000..e6d155760d51d --- /dev/null +++ b/pkgs/development/python-modules/logbook/default.nix @@ -0,0 +1,30 @@ +{ lib, buildPythonPackage, fetchPypi, isPy3k, pytest, mock, brotli }: + +buildPythonPackage rec { + pname = "logbook"; + version = "1.5.3"; + + src = fetchPypi { + pname = "Logbook"; + inherit version; + sha256 = "1s1gyfw621vid7qqvhddq6c3z2895ci4lq3g0r1swvpml2nm9x36"; + }; + + nativeCheckInputs = [ pytest ] ++ lib.optionals (!isPy3k) [ mock ]; + + propagatedBuildInputs = [ brotli ]; + + checkPhase = '' + find tests -name \*.pyc -delete + py.test tests + ''; + + # Some of the tests use localhost networking. + __darwinAllowLocalNetworking = true; + + meta = { + homepage = "https://pythonhosted.org/Logbook/"; + description = "A logging replacement for Python"; + license = lib.licenses.bsd3; + }; +} |