python: pytz: 2017.2 -> 2017.3
This commit is contained in:
parent
7953e05672
commit
330cad0d36
23
pkgs/development/python-modules/pytz/default.nix
Normal file
23
pkgs/development/python-modules/pytz/default.nix
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
{ lib, buildPythonPackage, fetchPypi, python }:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "pytz";
|
||||||
|
version = "2017.3";
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
extension = "zip";
|
||||||
|
sha256 = "fae4cffc040921b8a2d60c6cf0b5d662c1190fe54d718271db4eb17d44a185b7";
|
||||||
|
};
|
||||||
|
|
||||||
|
checkPhase = ''
|
||||||
|
${python.interpreter} -m unittest discover -s pytz/tests
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "World timezone definitions, modern and historical";
|
||||||
|
homepage = "http://pythonhosted.org/pytz";
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = with maintainers; [ dotlambda ];
|
||||||
|
};
|
||||||
|
}
|
@ -14855,27 +14855,7 @@ in {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
pytz = buildPythonPackage rec {
|
pytz = callPackage ../development/python-modules/pytz { };
|
||||||
name = "${pname}-${version}";
|
|
||||||
pname = "pytz";
|
|
||||||
version = "2017.2";
|
|
||||||
|
|
||||||
src = fetchPypi {
|
|
||||||
inherit pname version;
|
|
||||||
sha256 = "12cmd3j46d2gcw08bspvp6s9icfcvx88zjz52n1bli9dyvl5dh7m";
|
|
||||||
extension = "zip";
|
|
||||||
};
|
|
||||||
|
|
||||||
checkPhase = ''
|
|
||||||
python -m unittest discover -s pytz/tests
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
description = "World timezone definitions, modern and historical";
|
|
||||||
homepage = "http://pythonhosted.org/pytz";
|
|
||||||
license = licenses.mit;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
pytzdata = callPackage ../development/python-modules/pytzdata { };
|
pytzdata = callPackage ../development/python-modules/pytzdata { };
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user