pythonPackages.Logbook: 1.0.0 -> 1.4.0

This commit is contained in:
Jaakko Luttinen 2018-09-12 10:36:31 +03:00
parent f6c4fff6dc
commit b25bb5c963
No known key found for this signature in database
GPG Key ID: 7B1CE13152E6B964
2 changed files with 27 additions and 22 deletions

View File

@ -0,0 +1,26 @@
{ lib, buildPythonPackage, fetchPypi, isPy3k, pytest, mock, brotli }:
buildPythonPackage rec {
pname = "Logbook";
version = "1.4.0";
src = fetchPypi {
inherit pname version;
sha256 = "1n8wzm2nc99gbvb44y2fbb59sy3c4awkwfgy4pbwv7z892ykw2iw";
};
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;
};
}

View File

@ -15382,28 +15382,7 @@ EOF
};
};
Logbook = buildPythonPackage rec {
name = "Logbook-${version}";
version = "1.0.0";
src = pkgs.fetchurl {
url = "mirror://pypi/L/Logbook/${name}.tar.gz";
sha256 = "0whqbx5p0zkf7gmb5ssnsnhm4kn4drd4x7fbhdi8dnxklqajbnl7";
};
buildInputs = [ self.pytest ] ++ optionals (!isPy3k) [ self.mock ];
checkPhase = ''
find tests -name \*.pyc -delete
py.test tests
'';
meta = {
homepage = https://pythonhosted.org/Logbook/;
description = "A logging replacement for Python";
license = licenses.bsd3;
};
};
Logbook = callPackage ../development/python-modules/Logbook { };
libversion = callPackage ../development/python-modules/libversion {
inherit (pkgs) libversion;