4d5a95770c
GitOrigin-RevId: 3c5319ad3aa51551182ac82ea17ab1c6b0f0df89
35 lines
782 B
Nix
35 lines
782 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, fetchpatch
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "udatetime";
|
|
version = "0.0.17";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-sQvFVwaZpDinLitaZOdr2MKO4779FvIJOHpVB/oLgwE=";
|
|
};
|
|
|
|
patches = [
|
|
# fix build with python 3.9
|
|
(fetchpatch {
|
|
url = "https://github.com/freach/udatetime/pull/33.patch";
|
|
sha256 = "02wm7ivkv1viqn2wflgd10dgpddfqfrwacmrldigb1mwb79n554j";
|
|
})
|
|
];
|
|
|
|
# tests not included on pypi
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "udatetime" ];
|
|
|
|
meta = with lib; {
|
|
description = "Fast RFC3339 compliant Python date-time library";
|
|
homepage = "https://github.com/freach/udatetime";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ globin ];
|
|
};
|
|
}
|