1{ lib
2, buildPythonPackage
3, fetchPypi
4, pythonOlder
5
6# build time
7, setuptools-scm
8
9# runtime
10, pytz
11, jaraco_functools
12
13# tests
14, freezegun
15, pytest-freezegun
16, pytestCheckHook
17}:
18
19buildPythonPackage rec {
20 pname = "tempora";
21 version = "5.0.2";
22 format = "pyproject";
23
24 disabled = pythonOlder "3.7";
25
26 src = fetchPypi {
27 inherit pname version;
28 sha256 = "sha256-MfpbszsmQQJiEfI+gI64vTUZAZiLFn1F8yPI9FDs8hE=";
29 };
30
31 nativeBuildInputs = [
32 setuptools-scm
33 ];
34
35 propagatedBuildInputs = [
36 jaraco_functools
37 pytz
38 ];
39
40 checkInputs = [
41 freezegun
42 pytest-freezegun
43 pytestCheckHook
44 ];
45
46 pythonImportsCheck = [
47 "tempora"
48 "tempora.schedule"
49 "tempora.timing"
50 "tempora.utc"
51 ];
52
53 meta = with lib; {
54 description = "Objects and routines pertaining to date and time";
55 homepage = "https://github.com/jaraco/tempora";
56 license = licenses.mit;
57 maintainers = with maintainers; [ ];
58 };
59}