1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 h5py,
6 pytestCheckHook,
7 netcdf4,
8 pythonOlder,
9 setuptools,
10 setuptools-scm,
11}:
12
13buildPythonPackage rec {
14 pname = "h5netcdf";
15 version = "1.6.4";
16 pyproject = true;
17
18 src = fetchFromGitHub {
19 owner = "h5netcdf";
20 repo = "h5netcdf";
21 tag = "v${version}";
22 hash = "sha256-SFlea/ABP78GQgGkh7hscAlGfpKVnXN2zr99D9LCpeQ=";
23 };
24
25 build-system = [
26 setuptools
27 setuptools-scm
28 ];
29
30 dependencies = [ h5py ];
31
32 nativeCheckInputs = [
33 pytestCheckHook
34 netcdf4
35 ];
36
37 pythonImportsCheck = [ "h5netcdf" ];
38
39 meta = with lib; {
40 description = "Pythonic interface to netCDF4 via h5py";
41 homepage = "https://github.com/shoyer/h5netcdf";
42 changelog = "https://github.com/h5netcdf/h5netcdf/releases/tag/${src.tag}";
43 license = licenses.bsd3;
44 maintainers = [ ];
45 };
46}