Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / Logbook / default.nix
blobfa05a7a6dffac9e5e42d1005c0620ad830f44964
1 { lib, buildPythonPackage, fetchPypi, isPy3k, pytest, mock, brotli }:
3 buildPythonPackage rec {
4   pname = "Logbook";
5   version = "1.5.3";
7   src = fetchPypi {
8     inherit pname version;
9     sha256 = "1s1gyfw621vid7qqvhddq6c3z2895ci4lq3g0r1swvpml2nm9x36";
10   };
12   checkInputs = [ pytest ] ++ lib.optionals (!isPy3k) [ mock ];
14   propagatedBuildInputs = [ brotli ];
16   checkPhase = ''
17     find tests -name \*.pyc -delete
18     py.test tests
19   '';
21   # Some of the tests use localhost networking.
22   __darwinAllowLocalNetworking = true;
24   meta = {
25     homepage = "https://pythonhosted.org/Logbook/";
26     description = "A logging replacement for Python";
27     license = lib.licenses.bsd3;
28   };