about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/tempora/default.nix
blob: 79b04b7ebbb2bde8c7435c19313739dffda7f12a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ lib, buildPythonPackage, fetchPypi
, setuptools-scm, pytestCheckHook, pytest-freezegun, freezegun, backports_unittest-mock
, six, pytz, jaraco_functools, pythonOlder
}:

buildPythonPackage rec {
  pname = "tempora";
  version = "5.0.0";

  src = fetchPypi {
    inherit pname version;
    sha256 = "aa21dd1956e29559ecb2f2f2e14fcdb950085222fbbf86e6c946b5e1a8c36b26";
  };

  disabled = pythonOlder "3.2";

  nativeBuildInputs = [ setuptools-scm ];

  propagatedBuildInputs = [ six pytz jaraco_functools ];

  checkInputs = [
    pytest-freezegun pytestCheckHook freezegun backports_unittest-mock
  ];

  meta = with lib; {
    description = "Objects and routines pertaining to date and time";
    homepage = "https://github.com/jaraco/tempora";
    license = licenses.mit;
  };
}