1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 pythonOlder,
6 h5py,
7 numpy,
8 dill,
9 astropy,
10 scipy,
11 pandas,
12 pytestCheckHook,
13 setuptools,
14}:
15
16buildPythonPackage rec {
17 pname = "hickle";
18 version = "5.0.3";
19 pyproject = true;
20
21 disabled = pythonOlder "3.7";
22
23 src = fetchPypi {
24 inherit pname version;
25 hash = "sha256-An5RzK0nnRaBI6JEUl5shLrA22RgWzEbC9NJiRvgxT4=";
26 };
27
28 postPatch = ''
29 substituteInPlace tox.ini \
30 --replace-fail "--cov=./hickle" ""
31 '';
32
33 build-system = [ setuptools ];
34
35 dependencies = [
36 dill
37 h5py
38 numpy
39 ];
40
41 nativeCheckInputs = [
42 astropy
43 pandas
44 pytestCheckHook
45 scipy
46 ];
47
48 pythonImportsCheck = [ "hickle" ];
49
50 meta = with lib; {
51 description = "Serialize Python data to HDF5";
52 homepage = "https://github.com/telegraphic/hickle";
53 changelog = "https://github.com/telegraphic/hickle/releases/tag/v${version}";
54 license = licenses.mit;
55 maintainers = with maintainers; [ bcdarwin ];
56 };
57}