mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 18:26:45 +01:00
8efd318b10
This fixes building for Python 3.10. GitHub: Fixes #151664.
30 lines
534 B
Nix
30 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;
|
|
};
|
|
|
|
}
|