Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / cftime / default.nix
blob4291f805d2c0de7a47b5f6b4c31a1e54ecf98844
1 { lib
2 , buildPythonPackage
3 , cython
4 , fetchPypi
5 , numpy
6 , pytestCheckHook
7 , pythonOlder
8 }:
10 buildPythonPackage rec {
11   pname = "cftime";
12   version = "1.6.3";
13   format = "setuptools";
15   disabled = pythonOlder "3.7";
17   src = fetchPypi {
18     inherit pname version;
19     hash = "sha256-0Kayn3KhPwjgCLm+z/JHzHXISsshMzLt4Yh5xbaqTf0=";
20   };
22   postPatch = ''
23     sed -i "/--cov/d" setup.cfg
24   '';
26   nativeBuildInputs = [
27     cython
28     numpy
29   ];
31   propagatedBuildInputs = [
32     numpy
33   ];
35   nativeCheckInputs = [
36     pytestCheckHook
37   ];
39   pythonImportsCheck = [
40     "cftime"
41   ];
43   meta = with lib; {
44     description = "Time-handling functionality from netcdf4-python";
45     homepage = "https://github.com/Unidata/cftime";
46     license = licenses.mit;
47     maintainers = with maintainers; [ ];
48   };