python3Packages.datetime: init at 5.1

This commit is contained in:
icyrockcom 2023-02-08 16:42:32 -05:00
parent 8a600096f1
commit e076d0af22
2 changed files with 42 additions and 0 deletions

View File

@ -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 ];
};
}

View File

@ -2312,6 +2312,8 @@ self: super: with self; {
dateparser = callPackage ../development/python-modules/dateparser { };
datetime = callPackage ../development/python-modules/datetime { };
dateutils = callPackage ../development/python-modules/dateutils { };
datrie = callPackage ../development/python-modules/datrie { };