2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2018-10-26 17:17:05 +01:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, python
|
2018-11-04 10:35:03 +00:00
|
|
|
, six
|
2018-10-26 17:17:05 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "isodate";
|
2018-11-04 10:35:03 +00:00
|
|
|
version = "0.6.0";
|
2018-10-26 17:17:05 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-11-04 10:35:03 +00:00
|
|
|
sha256 = "2e364a3d5759479cdb2d37cce6b9376ea504db2ff90252a2e5b7cc89cc9ff2d8";
|
2018-10-26 17:17:05 +01:00
|
|
|
};
|
|
|
|
|
2018-11-04 10:35:03 +00:00
|
|
|
propagatedBuildInputs = [ six ];
|
2018-10-26 17:17:05 +01:00
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
${python.interpreter} -m unittest discover -s src/isodate/tests
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-10-26 17:17:05 +01:00
|
|
|
description = "ISO 8601 date/time parser";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://cheeseshop.python.org/pypi/isodate";
|
2018-10-26 17:17:05 +01:00
|
|
|
license = licenses.bsd0;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|