2020-04-24 23:36:52 +00:00
|
|
|
{ buildPythonPackage
|
|
|
|
, fetchPypi
|
2020-09-25 04:45:31 +00:00
|
|
|
, pythonOlder
|
2020-04-24 23:36:52 +00:00
|
|
|
, h5py
|
|
|
|
, numpy
|
|
|
|
, dill
|
|
|
|
, astropy
|
|
|
|
, scipy
|
|
|
|
, pandas
|
2022-09-11 15:47:08 +00:00
|
|
|
, pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
, lib
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2023-07-15 17:15:38 +00:00
|
|
|
pname = "hickle";
|
2022-09-11 15:47:08 +00:00
|
|
|
version = "5.0.2";
|
2023-07-15 17:15:38 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
disabled = pythonOlder "3.5";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-09-11 15:47:08 +00:00
|
|
|
hash = "sha256-2+7OF/a89jK/zLhbk/Q2A+zsKnfRbq3YMKGycEWsLEQ=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
2022-09-11 15:47:08 +00:00
|
|
|
substituteInPlace tox.ini --replace "--cov=./hickle" ""
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ h5py numpy dill ];
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2023-07-15 17:15:38 +00:00
|
|
|
pytestCheckHook
|
|
|
|
scipy
|
|
|
|
pandas
|
|
|
|
astropy
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
pythonImportsCheck = [ "hickle" ];
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
disabledTests = [
|
|
|
|
# broken in 5.0.2 with recent NumPy
|
|
|
|
# see https://github.com/telegraphic/hickle/issues/174
|
|
|
|
"test_scalar_compression"
|
|
|
|
# broken in 5.0.2 with python 3.11
|
|
|
|
# see https://github.com/telegraphic/hickle/issues/169
|
|
|
|
"test_H5NodeFilterProxy"
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = {
|
|
|
|
description = "Serialize Python data to HDF5";
|
|
|
|
homepage = "https://github.com/telegraphic/hickle";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ bcdarwin ];
|
|
|
|
};
|
|
|
|
}
|