Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / h5netcdf / default.nix
blob23a8c4ddcb262e2fa8f811ef39c64c1c99acd302
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , fetchpatch
5 , h5py
6 , pytestCheckHook
7 , netcdf4
8 , pythonOlder
9 }:
11 buildPythonPackage rec {
12   pname = "h5netcdf";
13   version = "0.8.1";
15   src = fetchPypi {
16     inherit pname version;
17     sha256 = "09bbnpsvwksb07wijn7flyyza56h5b2g2cw0hb3slmwxz6cgcjmr";
18   };
20   patches = [
21     (fetchpatch{
22       url = "https://patch-diff.githubusercontent.com/raw/h5netcdf/h5netcdf/pull/82.patch";
23     sha256 = "0x9bq9jl4kvw152adkpcyqslhpi7miv80hrnpl2w2y798mmbs0s4";
24     })
25   ];
27   propagatedBuildInputs = [
28     h5py
29   ];
31   checkInputs = [
32     pytestCheckHook
33     netcdf4
34   ];
36   disabled = pythonOlder "3.6";
38   dontUseSetuptoolsCheck = true;
40   meta = {
41     description = "netCDF4 via h5py";
42     homepage = "https://github.com/shoyer/h5netcdf";
43     license = lib.licenses.bsd3;
44   };