2023-02-08 21:42:32 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
pythonOlder,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pytz,
|
2024-01-06 18:05:46 +00:00
|
|
|
zope-interface,
|
2023-02-08 21:42:32 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "datetime";
|
2023-12-30 22:41:53 +00:00
|
|
|
version = "5.4";
|
2023-02-08 21:42:32 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "zopefoundation";
|
|
|
|
repo = "datetime";
|
|
|
|
rev = "refs/tags/${version}";
|
2023-12-30 22:41:53 +00:00
|
|
|
hash = "sha256-k4q9n3uikz+B9CUyqQTgl61OTKDWMsyhAt2gB1HWGRw=";
|
2023-02-08 21:42:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
pytz
|
2024-01-06 18:05:46 +00:00
|
|
|
zope-interface
|
2023-02-08 21:42:32 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "DateTime" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "DateTime data type, as known from Zope";
|
|
|
|
homepage = "https://github.com/zopefoundation/DateTime";
|
2023-08-17 07:27:32 +00:00
|
|
|
changelog = "https://github.com/zopefoundation/DateTime/blob/${version}/CHANGES.rst";
|
2023-02-08 21:42:32 +00:00
|
|
|
license = licenses.zpl21;
|
|
|
|
maintainers = with maintainers; [ icyrockcom ];
|
|
|
|
};
|
|
|
|
}
|