Files
nixpkgs/pkgs/development/python-modules/hickle/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

65 lines
1.3 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
fetchpatch,
pythonOlder,
h5py,
numpy,
dill,
astropy,
scipy,
pandas,
pytestCheckHook,
pytest-cov-stub,
setuptools,
}:
buildPythonPackage rec {
pname = "hickle";
version = "5.0.3";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-An5RzK0nnRaBI6JEUl5shLrA22RgWzEbC9NJiRvgxT4=";
};
patches = [
# fixes support for numpy 2.x, the PR is not yet merged https://github.com/telegraphic/hickle/pull/186
# FIXME: Remove this patch when the numpy 2.x support arrives
./numpy-2.x-support.patch
# fixes test failing with numpy 2.3 as ndarray.tostring was deleted
# FIXME: delete once https://github.com/telegraphic/hickle/pull/187 is merged
./numpy-2.3-ndarray-tostring.patch
];
build-system = [ setuptools ];
dependencies = [
dill
h5py
numpy
];
nativeCheckInputs = [
astropy
pandas
pytestCheckHook
pytest-cov-stub
scipy
];
pythonImportsCheck = [ "hickle" ];
meta = {
description = "Serialize Python data to HDF5";
homepage = "https://github.com/telegraphic/hickle";
changelog = "https://github.com/telegraphic/hickle/releases/tag/v${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ bcdarwin ];
};
}