1{ lib 2, buildPythonPackage 3, fetchPypi 4, fetchpatch 5, h5py 6, pytestCheckHook 7, netcdf4 8, pythonOlder 9}: 10 11buildPythonPackage rec { 12 pname = "h5netcdf"; 13 version = "0.8.1"; 14 15 src = fetchPypi { 16 inherit pname version; 17 sha256 = "09bbnpsvwksb07wijn7flyyza56h5b2g2cw0hb3slmwxz6cgcjmr"; 18 }; 19 20 patches = [ 21 (fetchpatch{ 22 url = "https://patch-diff.githubusercontent.com/raw/h5netcdf/h5netcdf/pull/82.patch"; 23 sha256 = "0x9bq9jl4kvw152adkpcyqslhpi7miv80hrnpl2w2y798mmbs0s4"; 24 }) 25 ]; 26 27 propagatedBuildInputs = [ 28 h5py 29 ]; 30 31 checkInputs = [ 32 pytestCheckHook 33 netcdf4 34 ]; 35 36 disabled = pythonOlder "3.6"; 37 38 dontUseSetuptoolsCheck = true; 39 40 meta = { 41 description = "netCDF4 via h5py"; 42 homepage = "https://github.com/shoyer/h5netcdf"; 43 license = lib.licenses.bsd3; 44 }; 45 46}