blob: d4139ce76218e406eefe033177e4be518d64bcab (
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
31
32
33
34
35
36
37
|
{ lib, buildPythonPackage, fetchPypi
, setuptools_scm, pytest, pytest-freezegun, freezegun, backports_unittest-mock
, six, pytz, jaraco_functools, pythonOlder }:
buildPythonPackage rec {
pname = "tempora";
version = "3.0.0";
src = fetchPypi {
inherit pname version;
sha256 = "e370d822cf48f5356aab0734ea45807250f5120e291c76712a1d766b49ae34f8";
};
disabled = pythonOlder "3.2";
nativeBuildInputs = [ setuptools_scm ];
patches = [
./0001-pytest-remove-flake8-black-coverage.patch
];
propagatedBuildInputs = [ six pytz jaraco_functools ];
checkInputs = [
pytest-freezegun pytest freezegun backports_unittest-mock
];
checkPhase = ''
pytest
'';
meta = with lib; {
description = "Objects and routines pertaining to date and time";
homepage = "https://github.com/jaraco/tempora";
license = licenses.mit;
};
}
|