depot/third_party/nixpkgs/pkgs/development/python-modules/hickle/default.nix
Default email 75ca762b89 Project import generated by Copybara.
GitOrigin-RevId: 29b0d4d0b600f8f5dd0b86e3362a33d4181938f9
2021-03-09 11:18:52 +08:00

50 lines
1 KiB
Nix

{ buildPythonPackage
, fetchPypi
, pythonOlder
, h5py
, numpy
, dill
, astropy
, scipy
, pandas
, codecov
, pytest
, pytestcov
, pytestrunner
, coveralls
, twine
, check-manifest
, lib
}:
buildPythonPackage rec {
pname = "hickle";
version = "4.0.4";
disabled = pythonOlder "3.5";
src = fetchPypi {
inherit pname version;
sha256 = "0d35030a76fe1c7fa6480088cde932689960ed354a2539ffaf5f3c90c578c06f";
};
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
checkInputs = [
pytest pytestcov pytestrunner coveralls scipy pandas astropy twine check-manifest codecov
];
pythonImportsCheck = [ "hickle" ];
meta = {
description = "Serialize Python data to HDF5";
homepage = "https://github.com/telegraphic/hickle";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ bcdarwin ];
};
}