pythonPackages.Logbook: 1.0.0 -> 1.4.0
This commit is contained in:
parent
f6c4fff6dc
commit
b25bb5c963
26
pkgs/development/python-modules/Logbook/default.nix
Normal file
26
pkgs/development/python-modules/Logbook/default.nix
Normal 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;
|
||||
};
|
||||
}
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user