blob: c925381d00f139baa3edf2bfe3b3394616bf23f9 (
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
{ lib
, buildPythonPackage
, cython
, fetchPypi
, fetchpatch
, numpy
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "cftime";
version = "1.6.2";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-hhTAD7ilBG3jBP3Ybb0iT5lAgYXXskWsZijQJ2WW5tI=";
};
patches = [
(fetchpatch {
# Fix test_num2date_precision by checking per platform precision
url = "https://github.com/Unidata/cftime/commit/221ff2195d588a43a7984597033b678f330fbc41.patch";
hash = "sha256-3XTJuET20g9QElM/8WGnNzJBFZ0oUN4ikhWKppwcyNM=";
})
];
postPatch = ''
sed -i "/--cov/d" setup.cfg
'';
nativeBuildInputs = [
cython
numpy
];
propagatedBuildInputs = [
numpy
];
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"cftime"
];
meta = with lib; {
description = "Time-handling functionality from netcdf4-python";
homepage = "https://github.com/Unidata/cftime";
license = licenses.mit;
maintainers = with maintainers; [ ];
};
}
|