Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / hickle / default.nix
blobec802955c0d3d9c98755b78dae2c2ceff15c9893
2   lib,
3   buildPythonPackage,
4   fetchPypi,
5   pythonOlder,
6   h5py,
7   numpy,
8   dill,
9   astropy,
10   scipy,
11   pandas,
12   pytestCheckHook,
13   setuptools,
16 buildPythonPackage rec {
17   pname = "hickle";
18   version = "5.0.3";
19   pyproject = true;
21   disabled = pythonOlder "3.5";
23   src = fetchPypi {
24     inherit pname version;
25     hash = "sha256-An5RzK0nnRaBI6JEUl5shLrA22RgWzEbC9NJiRvgxT4=";
26   };
28   postPatch = ''
29     substituteInPlace tox.ini \
30       --replace-fail "--cov=./hickle" ""
31   '';
33   build-system = [ setuptools ];
35   dependencies = [
36     dill
37     h5py
38     numpy
39   ];
41   nativeCheckInputs = [
42     astropy
43     pandas
44     pytestCheckHook
45     scipy
46   ];
48   pythonImportsCheck = [ "hickle" ];
50   disabledTests = [
51     # broken in 5.0.2 with recent NumPy
52     # see https://github.com/telegraphic/hickle/issues/174
53     "test_scalar_compression"
54     # broken in 5.0.2 with Python 3.11
55     # see https://github.com/telegraphic/hickle/issues/169
56     "test_H5NodeFilterProxy"
57     # broken in 5.0.2
58     "test_slash_dict_keys"
59   ];
61   meta = with lib; {
62     description = "Serialize Python data to HDF5";
63     homepage = "https://github.com/telegraphic/hickle";
64     changelog = "https://github.com/telegraphic/hickle/releases/tag/v${version}";
65     license = licenses.mit;
66     maintainers = with maintainers; [ bcdarwin ];
67   };