1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 h5py, 6 pytestCheckHook, 7 netcdf4, 8 pythonOlder, 9 setuptools, 10 setuptools-scm, 11}: 12 13buildPythonPackage rec { 14 pname = "h5netcdf"; 15 version = "1.3.0"; 16 format = "pyproject"; 17 18 disabled = pythonOlder "3.6"; 19 20 src = fetchPypi { 21 inherit pname version; 22 hash = "sha256-oXHAJ9rrNLJMJKO2MEGVuOq7tvEMdIJW7Tz+GYBjg88="; 23 }; 24 25 nativeBuildInputs = [ 26 setuptools 27 setuptools-scm 28 ]; 29 30 propagatedBuildInputs = [ h5py ]; 31 32 nativeCheckInputs = [ 33 pytestCheckHook 34 netcdf4 35 ]; 36 37 dontUseSetuptoolsCheck = true; 38 39 pythonImportsCheck = [ "h5netcdf" ]; 40 41 meta = with lib; { 42 description = "netCDF4 via h5py"; 43 homepage = "https://github.com/shoyer/h5netcdf"; 44 changelog = "https://github.com/h5netcdf/h5netcdf/releases/tag/v${version}"; 45 license = licenses.bsd3; 46 maintainers = with maintainers; [ ]; 47 }; 48}