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