nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ buildPythonPackage
2, fetchPypi
3, pythonOlder
4, h5py
5, numpy
6, dill
7, astropy
8, scipy
9, pandas
10, codecov
11, pytest
12, pytestcov
13, pytestrunner
14, coveralls
15, twine
16, check-manifest
17, lib
18}:
19
20buildPythonPackage rec {
21 pname = "hickle";
22 version = "4.0.4";
23 disabled = pythonOlder "3.5";
24
25 src = fetchPypi {
26 inherit pname version;
27 sha256 = "0d35030a76fe1c7fa6480088cde932689960ed354a2539ffaf5f3c90c578c06f";
28 };
29
30 postPatch = ''
31 substituteInPlace requirements_test.txt \
32 --replace 'astropy<3.1;' 'astropy;' --replace 'astropy<3.0;' 'astropy;'
33 '';
34
35 propagatedBuildInputs = [ h5py numpy dill ];
36
37 doCheck = false; # incompatible with latest astropy
38 checkInputs = [
39 pytest pytestcov pytestrunner coveralls scipy pandas astropy twine check-manifest codecov
40 ];
41
42 pythonImportsCheck = [ "hickle" ];
43
44 meta = {
45 # incompatible with h5py>=3.0, see https://github.com/telegraphic/hickle/issues/143
46 broken = true;
47 description = "Serialize Python data to HDF5";
48 homepage = "https://github.com/telegraphic/hickle";
49 license = lib.licenses.mit;
50 maintainers = with lib.maintainers; [ bcdarwin ];
51 };
52}