1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 freezegun,
6 jaraco-functools,
7 pytest-freezegun,
8 pytestCheckHook,
9 pythonOlder,
10 pytz,
11 setuptools-scm,
12}:
13
14buildPythonPackage rec {
15 pname = "tempora";
16 version = "5.6.0";
17 format = "pyproject";
18
19 disabled = pythonOlder "3.8";
20
21 src = fetchPypi {
22 inherit pname version;
23 hash = "sha256-O/zBLL27uv7KrMuQl/w3VENbnQY9zkMzjk+ofTkQSu0=";
24 };
25
26 nativeBuildInputs = [ setuptools-scm ];
27
28 propagatedBuildInputs = [
29 jaraco-functools
30 pytz
31 ];
32
33 nativeCheckInputs = [
34 freezegun
35 pytest-freezegun
36 pytestCheckHook
37 ];
38
39 pythonImportsCheck = [
40 "tempora"
41 "tempora.schedule"
42 "tempora.timing"
43 "tempora.utc"
44 ];
45
46 meta = with lib; {
47 description = "Objects and routines pertaining to date and time";
48 mainProgram = "calc-prorate";
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 = [ ];
53 };
54}