depot/third_party/nixpkgs/pkgs/development/python-modules/datetime/default.nix
Default email e7ec2969af Project import generated by Copybara.
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
2024-01-13 09:15:51 +01:00

39 lines
826 B
Nix

{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, pytz
, zope-interface
}:
buildPythonPackage rec {
pname = "datetime";
version = "5.4";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "zopefoundation";
repo = "datetime";
rev = "refs/tags/${version}";
hash = "sha256-k4q9n3uikz+B9CUyqQTgl61OTKDWMsyhAt2gB1HWGRw=";
};
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/blob/${version}/CHANGES.rst";
license = licenses.zpl21;
maintainers = with maintainers; [ icyrockcom ];
};
}