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