blob: e06a640ead585d8072a94e01fae347f24ad46b37 (
plain)
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
38
39
40
41
42
43
44
|
{
lib,
arrow,
buildPythonPackage,
fetchFromGitHub,
hypothesis,
isodate,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "isoduration";
version = "20.11.0";
format = "setuptools";
src = fetchFromGitHub {
owner = "bolsote";
repo = "isoduration";
rev = version;
hash = "sha256-6LqsH+3V/K0s2YD1gvmelo+cCH+yCAmmyTYGhUegVdk=";
};
propagatedBuildInputs = [ arrow ];
nativeCheckInputs = [
hypothesis
isodate
pytestCheckHook
];
disabledTestPaths = [
# We don't care about benchmarks
"tests/test_benchmark.py"
];
pythonImportsCheck = [ "isoduration" ];
meta = {
description = "Library for operations with ISO 8601 durations";
homepage = "https://github.com/bolsote/isoduration";
license = lib.licenses.isc;
maintainers = with lib.maintainers; [ fab ];
};
}
|