nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 fetchpatch,
6 h5py,
7 numpy,
8 dill,
9 astropy,
10 scipy,
11 pandas,
12 pytestCheckHook,
13 pytest-cov-stub,
14 setuptools,
15}:
16
17buildPythonPackage rec {
18 pname = "hickle";
19 version = "5.0.3";
20 pyproject = true;
21
22 src = fetchPypi {
23 inherit pname version;
24 hash = "sha256-An5RzK0nnRaBI6JEUl5shLrA22RgWzEbC9NJiRvgxT4=";
25 };
26
27 patches = [
28 # fixes support for numpy 2.x, the PR is not yet merged https://github.com/telegraphic/hickle/pull/186
29 # FIXME: Remove this patch when the numpy 2.x support arrives
30 ./numpy-2.x-support.patch
31 # fixes test failing with numpy 2.3 as ndarray.tostring was deleted
32 # FIXME: delete once https://github.com/telegraphic/hickle/pull/187 is merged
33 ./numpy-2.3-ndarray-tostring.patch
34 ];
35
36 build-system = [ setuptools ];
37
38 dependencies = [
39 dill
40 h5py
41 numpy
42 ];
43
44 nativeCheckInputs = [
45 astropy
46 pandas
47 pytestCheckHook
48 pytest-cov-stub
49 scipy
50 ];
51
52 pythonImportsCheck = [ "hickle" ];
53
54 meta = {
55 description = "Serialize Python data to HDF5";
56 homepage = "https://github.com/telegraphic/hickle";
57 changelog = "https://github.com/telegraphic/hickle/releases/tag/v${version}";
58 license = lib.licenses.mit;
59 maintainers = with lib.maintainers; [ bcdarwin ];
60 };
61}