2024-04-21 15:54:59 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
pythonOlder,
|
|
|
|
h5py,
|
|
|
|
numpy,
|
|
|
|
dill,
|
|
|
|
astropy,
|
|
|
|
scipy,
|
|
|
|
pandas,
|
|
|
|
pytestCheckHook,
|
|
|
|
setuptools,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2023-07-15 17:15:38 +00:00
|
|
|
pname = "hickle";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "5.0.3";
|
|
|
|
pyproject = true;
|
2023-07-15 17:15:38 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-An5RzK0nnRaBI6JEUl5shLrA22RgWzEbC9NJiRvgxT4=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
2023-08-10 07:59:29 +00:00
|
|
|
substituteInPlace tox.ini \
|
2024-04-21 15:54:59 +00:00
|
|
|
--replace-fail "--cov=./hickle" ""
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
build-system = [ setuptools ];
|
|
|
|
|
|
|
|
dependencies = [
|
2023-08-10 07:59:29 +00:00
|
|
|
dill
|
|
|
|
h5py
|
|
|
|
numpy
|
|
|
|
];
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2023-08-10 07:59:29 +00:00
|
|
|
astropy
|
|
|
|
pandas
|
2023-07-15 17:15:38 +00:00
|
|
|
pytestCheckHook
|
|
|
|
scipy
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
pythonImportsCheck = [ "hickle" ];
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2023-08-10 07:59:29 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Serialize Python data to HDF5";
|
|
|
|
homepage = "https://github.com/telegraphic/hickle";
|
2023-08-10 07:59:29 +00:00
|
|
|
changelog = "https://github.com/telegraphic/hickle/releases/tag/v${version}";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ bcdarwin ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|