python3Packages.datetime: init at 5.1

This commit is contained in:
icyrockcom
2023-04-24 09:24:48 -04:00
parent 8a600096f1
commit e076d0af22
2 changed files with 42 additions and 0 deletions
@@ -0,0 +1,40 @@
{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, pytz
, zope_interface
}:
buildPythonPackage rec {
pname = "datetime";
version = "5.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "zopefoundation";
repo = "datetime";
rev = "refs/tags/${version}";
hash = "sha256-5H7s2y/2zsQC3Azs1yakotO8ZVLCRV8yPahbX09C5L8=";
};
propagatedBuildInputs = [
pytz
zope_interface
];
pythonImportsCheck = [
"DateTime"
];
meta = with lib; {
description = "DateTime data type, as known from Zope";
homepage = "https://github.com/zopefoundation/DateTime";
changelog = "https://github.com/zopefoundation/DateTime/releases/tag/${version}";
license = licenses.zpl21;
maintainers = with maintainers; [ icyrockcom ];
};
}