depot/third_party/nixpkgs/pkgs/development/python-modules/datetime/default.nix
Default email c7f94ff3ce Project import generated by Copybara.
GitOrigin-RevId: b85ed9dcbf187b909ef7964774f8847d554fab3b
2023-08-22 22:05:09 +02:00

40 lines
827 B
Nix

{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, pytz
, zope_interface
}:
buildPythonPackage rec {
pname = "datetime";
version = "5.2";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "zopefoundation";
repo = "datetime";
rev = "refs/tags/${version}";
hash = "sha256-J96IjyPyJaUC5mECK3g/cgxBh1OoVfj62XocBatYgOw=";
};
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 ];
};
}