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";
|
2020-09-25 04:45:31 +00:00
|
|
|
version = "4.0.1";
|
|
|
|
disabled = pythonOlder "3.5";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-09-25 04:45:31 +00:00
|
|
|
sha256 = "fcf2c4f9e4b7f0d9dae7aa6c59a58473884017875d3b17898d56eaf8a9c1da96";
|
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 = {
|
|
|
|
description = "Serialize Python data to HDF5";
|
|
|
|
homepage = "https://github.com/telegraphic/hickle";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ bcdarwin ];
|
|
|
|
};
|
|
|
|
}
|