depot/third_party/nixpkgs/pkgs/development/python-modules/isodate/default.nix
Default email a425ba4985 Project import generated by Copybara.
GitOrigin-RevId: 5b091d4fbe3b7b7493c3b46fe0842e4b30ea24b3
2021-12-30 14:39:12 +01:00

29 lines
534 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, python
, six
}:
buildPythonPackage rec {
pname = "isodate";
version = "0.6.1";
src = fetchPypi {
inherit pname version;
sha256 = "SMWIHefosKDWSMsCTIBi3ITnuEDtgehkx2FP08Envek=";
};
propagatedBuildInputs = [ six ];
checkPhase = ''
${python.interpreter} -m unittest discover -s src/isodate/tests
'';
meta = with lib; {
description = "ISO 8601 date/time parser";
homepage = "http://cheeseshop.python.org/pypi/isodate";
license = licenses.bsd0;
};
}