3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/hickle/default.nix

45 lines
890 B
Nix
Raw Normal View History

2020-01-28 21:48:15 +00:00
{ buildPythonPackage
, fetchPypi
, h5py
, numpy
, dill
, astropy
, scipy
, pandas
2020-03-13 16:50:35 +00:00
, codecov
2020-01-28 21:48:15 +00:00
, pytest
, pytestcov
, pytestrunner
, coveralls
2020-03-13 16:50:35 +00:00
, twine
, check-manifest
2020-01-28 21:48:15 +00:00
, lib
}:
buildPythonPackage rec {
pname = "hickle";
2020-03-13 16:50:35 +00:00
version = "3.4.6";
2020-01-28 21:48:15 +00:00
src = fetchPypi {
inherit pname version;
2020-03-13 16:50:35 +00:00
sha256 = "026r6yg3amsi8k8plzsbw5rnifym6sc17y011daqyvcpb7mfs94b";
2020-01-28 21:48:15 +00:00
};
postPatch = ''
substituteInPlace requirements_test.txt \
--replace 'astropy<3.1;' 'astropy;' --replace 'astropy<3.0;' 'astropy;'
'';
propagatedBuildInputs = [ h5py numpy dill ];
2020-03-13 16:50:35 +00:00
checkInputs = [
pytest pytestcov pytestrunner coveralls scipy pandas astropy twine check-manifest codecov
];
2020-01-28 21:48:15 +00:00
meta = {
description = "Serialize Python data to HDF5";
homepage = "https://github.com/telegraphic/hickle";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ bcdarwin ];
};
}