2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
pythonOlder,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pytz,
|
|
|
|
zope-interface,
|
2023-05-24 13:37:59 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "datetime";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "5.4";
|
2023-05-24 13:37:59 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "zopefoundation";
|
|
|
|
repo = "datetime";
|
|
|
|
rev = "refs/tags/${version}";
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-k4q9n3uikz+B9CUyqQTgl61OTKDWMsyhAt2gB1HWGRw=";
|
2023-05-24 13:37:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
pytz
|
2024-01-13 08:15:51 +00:00
|
|
|
zope-interface
|
2023-05-24 13:37:59 +00:00
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "DateTime" ];
|
2023-05-24 13:37:59 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "DateTime data type, as known from Zope";
|
|
|
|
homepage = "https://github.com/zopefoundation/DateTime";
|
2023-08-22 20:05:09 +00:00
|
|
|
changelog = "https://github.com/zopefoundation/DateTime/blob/${version}/CHANGES.rst";
|
2023-05-24 13:37:59 +00:00
|
|
|
license = licenses.zpl21;
|
|
|
|
maintainers = with maintainers; [ icyrockcom ];
|
|
|
|
};
|
|
|
|
}
|