1{
2 lib,
3 buildPythonPackage,
4 cython,
5 fetchPypi,
6 numpy,
7 pytestCheckHook,
8 pythonOlder,
9}:
10
11buildPythonPackage rec {
12 pname = "cftime";
13 version = "1.6.4";
14 format = "setuptools";
15
16 disabled = pythonOlder "3.7";
17
18 src = fetchPypi {
19 inherit pname version;
20 hash = "sha256-4yVAYZN1in7WcwjetS5yd4KhnjhOGDN45/9iCYvgrtw=";
21 };
22
23 postPatch = ''
24 sed -i "/--cov/d" setup.cfg
25 '';
26
27 nativeBuildInputs = [
28 cython
29 numpy
30 ];
31
32 propagatedBuildInputs = [ numpy ];
33
34 nativeCheckInputs = [ pytestCheckHook ];
35
36 pythonImportsCheck = [ "cftime" ];
37
38 meta = with lib; {
39 description = "Time-handling functionality from netcdf4-python";
40 homepage = "https://github.com/Unidata/cftime";
41 license = licenses.mit;
42 maintainers = [ ];
43 };
44}