nixpkgs/pkgs/development/python-modules/isodate/default.nix
David Nadlinger 8efd318b10 python3.pkgs.isodate: 0.6.0 -> 0.6.1
This fixes building for Python 3.10.

GitHub: Fixes #151664.
2021-12-27 23:58:00 +00: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;
};
}