2020-05-27 12:58:05 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2020-12-07 15:40:24 +00:00
|
|
|
, fetchpatch
|
2020-05-27 12:58:05 +01:00
|
|
|
, h5py
|
|
|
|
, pytestCheckHook
|
|
|
|
, netcdf4
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "h5netcdf";
|
2020-07-26 07:30:45 +01:00
|
|
|
version = "0.8.1";
|
2020-05-27 12:58:05 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-07-26 07:30:45 +01:00
|
|
|
sha256 = "09bbnpsvwksb07wijn7flyyza56h5b2g2cw0hb3slmwxz6cgcjmr";
|
2020-05-27 12:58:05 +01:00
|
|
|
};
|
|
|
|
|
2020-12-07 15:40:24 +00:00
|
|
|
patches = [
|
|
|
|
(fetchpatch{
|
|
|
|
url = "https://patch-diff.githubusercontent.com/raw/h5netcdf/h5netcdf/pull/82.patch";
|
|
|
|
sha256 = "0x9bq9jl4kvw152adkpcyqslhpi7miv80hrnpl2w2y798mmbs0s4";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2020-05-27 12:58:05 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
h5py
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
netcdf4
|
|
|
|
];
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
dontUseSetuptoolsCheck = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "netCDF4 via h5py";
|
2020-07-26 07:30:45 +01:00
|
|
|
homepage = "https://github.com/shoyer/h5netcdf";
|
2020-05-27 12:58:05 +01:00
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
};
|
|
|
|
|
2020-08-25 03:07:09 +01:00
|
|
|
}
|