1{ lib
2, buildPythonPackage
3, pythonOlder
4, fetchFromGitHub
5, pytz
6, zope_interface
7}:
8
9buildPythonPackage rec {
10 pname = "datetime";
11 version = "5.2";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.7";
15
16 src = fetchFromGitHub {
17 owner = "zopefoundation";
18 repo = "datetime";
19 rev = "refs/tags/${version}";
20 hash = "sha256-J96IjyPyJaUC5mECK3g/cgxBh1OoVfj62XocBatYgOw=";
21 };
22
23 propagatedBuildInputs = [
24 pytz
25 zope_interface
26 ];
27
28 pythonImportsCheck = [
29 "DateTime"
30 ];
31
32 meta = with lib; {
33 description = "DateTime data type, as known from Zope";
34 homepage = "https://github.com/zopefoundation/DateTime";
35 changelog = "https://github.com/zopefoundation/DateTime/blob/${version}/CHANGES.rst";
36 license = licenses.zpl21;
37 maintainers = with maintainers; [ icyrockcom ];
38 };
39}
40