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

31 lines
571 B
Nix
Raw Normal View History

{ stdenv
, buildPythonPackage
, fetchPypi
, isPy3k
, python
2018-11-04 10:35:03 +00:00
, six
}:
buildPythonPackage rec {
pname = "isodate";
2018-11-04 10:35:03 +00:00
version = "0.6.0";
src = fetchPypi {
inherit pname version;
2018-11-04 10:35:03 +00:00
sha256 = "2e364a3d5759479cdb2d37cce6b9376ea504db2ff90252a2e5b7cc89cc9ff2d8";
};
2018-11-04 10:35:03 +00:00
propagatedBuildInputs = [ six ];
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;
};
}