pythonPackages.isodate: refactor move to python-modules
This commit is contained in:
parent
854ec9ac53
commit
e9e5fd377e
30
pkgs/development/python-modules/isodate/default.nix
Normal file
30
pkgs/development/python-modules/isodate/default.nix
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
{ stdenv
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
, isPy3k
|
||||||
|
, python
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "isodate";
|
||||||
|
version = "0.5.4";
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
sha256 = "42105c41d037246dc1987e36d96f3752ffd5c0c24834dd12e4fdbe1e79544e31";
|
||||||
|
};
|
||||||
|
|
||||||
|
# Judging from SyntaxError
|
||||||
|
doCheck = !(isPy3k);
|
||||||
|
|
||||||
|
checkPhase = ''
|
||||||
|
${python.interpreter} -m unittest discover -s src/isodate/tests
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "ISO 8601 date/time parser";
|
||||||
|
homepage = http://cheeseshop.python.org/pypi/isodate;
|
||||||
|
license = licenses.bsd0;
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
@ -3606,27 +3606,7 @@ in {
|
|||||||
|
|
||||||
rdflib = callPackage ../development/python-modules/rdflib { };
|
rdflib = callPackage ../development/python-modules/rdflib { };
|
||||||
|
|
||||||
isodate = buildPythonPackage rec {
|
isodate = callPackage ../development/python-modules/isodate { };
|
||||||
name = "isodate-${version}";
|
|
||||||
version = "0.5.4";
|
|
||||||
|
|
||||||
src = pkgs.fetchurl {
|
|
||||||
url = "mirror://pypi/i/isodate/${name}.tar.gz";
|
|
||||||
sha256 = "42105c41d037246dc1987e36d96f3752ffd5c0c24834dd12e4fdbe1e79544e31";
|
|
||||||
};
|
|
||||||
|
|
||||||
# Judging from SyntaxError
|
|
||||||
doCheck = !(isPy3k);
|
|
||||||
|
|
||||||
checkPhase = ''
|
|
||||||
${python.interpreter} -m unittest discover -s src/isodate/tests
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
description = "ISO 8601 date/time parser";
|
|
||||||
homepage = http://cheeseshop.python.org/pypi/isodate;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
resampy = buildPythonPackage rec {
|
resampy = buildPythonPackage rec {
|
||||||
pname = "resampy";
|
pname = "resampy";
|
||||||
|
Loading…
Reference in New Issue
Block a user