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
|
|
|
|
, codecov
|
|
|
|
, pytest
|
|
|
|
, pytestcov
|
|
|
|
, pytestrunner
|
|
|
|
, coveralls
|
|
|
|
, twine
|
|
|
|
, check-manifest
|
|
|
|
, lib
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "hickle";
|
2021-03-09 03:18:52 +00:00
|
|
|
version = "4.0.4";
|
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;
|
2021-03-09 03:18:52 +00:00
|
|
|
sha256 = "0d35030a76fe1c7fa6480088cde932689960ed354a2539ffaf5f3c90c578c06f";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace requirements_test.txt \
|
|
|
|
--replace 'astropy<3.1;' 'astropy;' --replace 'astropy<3.0;' 'astropy;'
|
|
|
|
'';
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ h5py numpy dill ];
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
doCheck = false; # incompatible with latest astropy
|
2020-04-24 23:36:52 +00:00
|
|
|
checkInputs = [
|
|
|
|
pytest pytestcov pytestrunner coveralls scipy pandas astropy twine check-manifest codecov
|
|
|
|
];
|
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
pythonImportsCheck = [ "hickle" ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = {
|
2021-05-20 23:08:51 +00:00
|
|
|
# incompatible with h5py>=3.0, see https://github.com/telegraphic/hickle/issues/143
|
|
|
|
broken = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Serialize Python data to HDF5";
|
|
|
|
homepage = "https://github.com/telegraphic/hickle";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ bcdarwin ];
|
|
|
|
};
|
|
|
|
}
|