summary refs log tree commit diff
path: root/pkgs/development/python-modules/hickle/default.nix
blob: 8d45970294c7d19e7d1e326929a436f434bfd4a9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{ buildPythonPackage
, fetchPypi
, h5py
, numpy
, dill
, astropy
, scipy
, pandas
, pytest
, pytestcov
, pytestrunner
, coveralls
, lib
}:

buildPythonPackage rec {
  pname   = "hickle";
  version = "3.4.5";

  src = fetchPypi {
    inherit pname version;
    sha256 = "1d1qj3yl7635lgkqacz9r8fyhv71396l748ww4wy05ibpignjm2x";
  };

  postPatch = ''
    substituteInPlace requirements_test.txt \
      --replace 'astropy<3.1;' 'astropy;' --replace 'astropy<3.0;' 'astropy;'
  '';

  propagatedBuildInputs = [ h5py numpy dill ];
  checkInputs = [ pytest pytestcov pytestrunner coveralls scipy pandas astropy ];

  meta = {
    description = "Serialize Python data to HDF5";
    homepage = "https://github.com/telegraphic/hickle";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ bcdarwin ];
  };
}