1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5
6 # build-system
7 setuptools-scm,
8
9 # dependencies
10 h5py,
11 numpy,
12
13 # tests
14 pytestCheckHook,
15 pytest-cov-stub,
16 scipy,
17 tables,
18}:
19
20buildPythonPackage rec {
21 pname = "h5io";
22 version = "0.2.5";
23 pyproject = true;
24
25 src = fetchFromGitHub {
26 owner = "h5io";
27 repo = "h5io";
28 tag = "h5io-${version}";
29 hash = "sha256-ZkG9e7KtDvoRq9XCExYseE+Z7tMQTWcSiwsSrN5prdI=";
30 };
31
32 build-system = [ setuptools-scm ];
33
34 dependencies = [
35 h5py
36 numpy
37 ];
38
39 nativeCheckInputs = [
40 pytestCheckHook
41 pytest-cov-stub
42 scipy
43 tables
44 ];
45
46 disabledTests = [
47 # See https://github.com/h5io/h5io/issues/86
48 "test_state_with_pathlib"
49 ];
50
51 pythonImportsCheck = [ "h5io" ];
52
53 meta = {
54 description = "Read and write simple Python objects using HDF5";
55 homepage = "https://github.com/h5io/h5io";
56 changelog = "https://github.com/h5io/h5io/releases/tag/h5io-${version}";
57 license = lib.licenses.bsd3;
58 maintainers = with lib.maintainers; [ mbalatsko ];
59 };
60}