3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/Logbook/default.nix

27 lines
611 B
Nix
Raw Normal View History

2018-09-12 08:36:31 +01:00
{ lib, buildPythonPackage, fetchPypi, isPy3k, pytest, mock, brotli }:
buildPythonPackage rec {
pname = "Logbook";
2019-01-17 15:13:02 +00:00
version = "1.4.3";
2018-09-12 08:36:31 +01:00
src = fetchPypi {
inherit pname version;
2019-01-17 15:13:02 +00:00
sha256 = "a5a96792abd8172c80d61b7530e134524f20e2841981038031e602ed5920fef5";
2018-09-12 08:36:31 +01:00
};
checkInputs = [ pytest ] ++ lib.optionals (!isPy3k) [ mock ];
propagatedBuildInputs = [ brotli ];
checkPhase = ''
find tests -name \*.pyc -delete
py.test tests
'';
meta = {
homepage = https://pythonhosted.org/Logbook/;
description = "A logging replacement for Python";
license = lib.licenses.bsd3;
};
}