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

53 lines
1.1 KiB
Nix
Raw Normal View History

2020-01-28 21:48:15 +00:00
{ buildPythonPackage
, fetchPypi
, pythonOlder
2020-01-28 21:48:15 +00:00
, h5py
, numpy
, dill
, astropy
, scipy
, pandas
2020-03-13 16:50:35 +00:00
, codecov
2020-01-28 21:48:15 +00:00
, pytest
, pytest-cov
, pytest-runner
2020-01-28 21:48:15 +00:00
, 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";
2021-02-20 09:09:10 +00:00
version = "4.0.4";
disabled = pythonOlder "3.5";
2020-01-28 21:48:15 +00:00
src = fetchPypi {
inherit pname version;
2021-02-20 09:09:10 +00:00
sha256 = "0d35030a76fe1c7fa6480088cde932689960ed354a2539ffaf5f3c90c578c06f";
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 ];
doCheck = false; # incompatible with latest astropy
2020-03-13 16:50:35 +00:00
checkInputs = [
pytest pytest-cov pytest-runner coveralls scipy pandas astropy twine check-manifest codecov
2020-03-13 16:50:35 +00:00
];
2020-01-28 21:48:15 +00:00
pythonImportsCheck = [ "hickle" ];
2020-01-28 21:48:15 +00:00
meta = {
# incompatible with h5py>=3.0, see https://github.com/telegraphic/hickle/issues/143
broken = true;
2020-01-28 21:48:15 +00:00
description = "Serialize Python data to HDF5";
homepage = "https://github.com/telegraphic/hickle";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ bcdarwin ];
};
}