c7f94ff3ce
GitOrigin-RevId: b85ed9dcbf187b909ef7964774f8847d554fab3b
40 lines
827 B
Nix
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 ];
|
|
};
|
|
}
|
|
|