1{ buildPythonPackage
2, fetchPypi
3, pythonOlder
4, h5py
5, numpy
6, dill
7, astropy
8, scipy
9, pandas
10, pytestCheckHook
11, lib
12}:
13
14buildPythonPackage rec {
15 pname = "hickle";
16 version = "5.0.2";
17 format = "setuptools";
18
19 disabled = pythonOlder "3.5";
20
21 src = fetchPypi {
22 inherit pname version;
23 hash = "sha256-2+7OF/a89jK/zLhbk/Q2A+zsKnfRbq3YMKGycEWsLEQ=";
24 };
25
26 postPatch = ''
27 substituteInPlace tox.ini --replace "--cov=./hickle" ""
28 '';
29
30 propagatedBuildInputs = [ h5py numpy dill ];
31
32 nativeCheckInputs = [
33 pytestCheckHook
34 scipy
35 pandas
36 astropy
37 ];
38
39 pythonImportsCheck = [ "hickle" ];
40
41 disabledTests = [
42 # broken in 5.0.2 with recent NumPy
43 # see https://github.com/telegraphic/hickle/issues/174
44 "test_scalar_compression"
45 # broken in 5.0.2 with python 3.11
46 # see https://github.com/telegraphic/hickle/issues/169
47 "test_H5NodeFilterProxy"
48 ];
49
50 meta = {
51 description = "Serialize Python data to HDF5";
52 homepage = "https://github.com/telegraphic/hickle";
53 license = lib.licenses.mit;
54 maintainers = with lib.maintainers; [ bcdarwin ];
55 };
56}