nixpkgs/pkgs/development/python-modules/datetime/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
828 B
Nix
Raw Normal View History

2023-02-08 21:42:32 +00:00
{
lib,
buildPythonPackage,
pythonOlder,
fetchFromGitHub,
pytz,
zope-interface,
2023-02-08 21:42:32 +00:00
}:
buildPythonPackage rec {
pname = "datetime";
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}";
hash = "sha256-k4q9n3uikz+B9CUyqQTgl61OTKDWMsyhAt2gB1HWGRw=";
2023-02-08 21:42:32 +00:00
};
propagatedBuildInputs = [
pytz
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";
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 ];
};
}