1{ lib, buildPythonPackage, fetchPypi
2, setuptools-scm, pytest, pytest-freezegun, freezegun, backports_unittest-mock
3, six, pytz, jaraco_functools, pythonOlder
4, pytest-flake8, pytest-cov, pytest-black, pytest-mypy
5}:
6
7buildPythonPackage rec {
8 pname = "tempora";
9 version = "4.1.2";
10
11 src = fetchPypi {
12 inherit pname version;
13 sha256 = "fd6cafd66b01390d53a760349cf0b3123844ec6ae3d1043d7190473ea9459138";
14 };
15
16 disabled = pythonOlder "3.2";
17
18 nativeBuildInputs = [ setuptools-scm ];
19
20 propagatedBuildInputs = [ six pytz jaraco_functools ];
21
22 checkInputs = [
23 pytest-freezegun pytest freezegun backports_unittest-mock
24 pytest-flake8 pytest-cov pytest-black pytest-mypy
25 ];
26
27 checkPhase = ''
28 pytest
29 '';
30
31 meta = with lib; {
32 description = "Objects and routines pertaining to date and time";
33 homepage = "https://github.com/jaraco/tempora";
34 license = licenses.mit;
35 };
36}