depot/third_party/nixpkgs/pkgs/development/python-modules/datetime/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

40 lines
827 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 ];
};
}