Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / tempora / default.nix
blobb33d72b99b79005c59de18dc07889c2a28bcf940
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , freezegun
5 , jaraco-functools
6 , pytest-freezegun
7 , pytestCheckHook
8 , pythonOlder
9 , pytz
10 , setuptools-scm
13 buildPythonPackage rec {
14   pname = "tempora";
15   version = "5.5.1";
16   format = "pyproject";
18   disabled = pythonOlder "3.8";
20   src = fetchPypi {
21     inherit pname version;
22     hash = "sha256-ortR4hIZdtkxNHs+QzkXw2S4P91fZO8nM2yGW/H7D3U=";
23   };
25   nativeBuildInputs = [
26     setuptools-scm
27   ];
29   propagatedBuildInputs = [
30     jaraco-functools
31     pytz
32   ];
34   nativeCheckInputs = [
35     freezegun
36     pytest-freezegun
37     pytestCheckHook
38   ];
40   pythonImportsCheck = [
41     "tempora"
42     "tempora.schedule"
43     "tempora.timing"
44     "tempora.utc"
45   ];
47   meta = with lib; {
48     description = "Objects and routines pertaining to date and time";
49     mainProgram = "calc-prorate";
50     homepage = "https://github.com/jaraco/tempora";
51     changelog = "https://github.com/jaraco/tempora/blob/v${version}/NEWS.rst";
52     license = licenses.mit;
53     maintainers = with maintainers; [ ];
54   };