1{ lib
2, buildPythonPackage
3, fetchPypi
4, freezegun
5, jaraco-functools
6, pytest-freezegun
7, pytestCheckHook
8, pythonOlder
9, pytz
10, setuptools-scm
11}:
12
13buildPythonPackage rec {
14 pname = "tempora";
15 version = "5.5.0";
16 format = "pyproject";
17
18 disabled = pythonOlder "3.8";
19
20 src = fetchPypi {
21 inherit pname version;
22 hash = "sha256-E+T8yZfQUJwzBtaEHwPpOBt+Xkayvr+ukVGvkAhfDCY=";
23 };
24
25 nativeBuildInputs = [
26 setuptools-scm
27 ];
28
29 propagatedBuildInputs = [
30 jaraco-functools
31 pytz
32 ];
33
34 nativeCheckInputs = [
35 freezegun
36 pytest-freezegun
37 pytestCheckHook
38 ];
39
40 pythonImportsCheck = [
41 "tempora"
42 "tempora.schedule"
43 "tempora.timing"
44 "tempora.utc"
45 ];
46
47 meta = with lib; {
48 description = "Objects and routines pertaining to date and time";
49 homepage = "https://github.com/jaraco/tempora";
50 changelog = "https://github.com/jaraco/tempora/blob/v${version}/NEWS.rst";
51 license = licenses.mit;
52 maintainers = with maintainers; [ ];
53 };
54}