1{ buildPythonPackage
2, fetchPypi
3, pythonOlder
4, h5py
5, numpy
6, dill
7, astropy
8, scipy
9, pandas
10, pytestCheckHook
11, lib
12}:
13
14buildPythonPackage rec {
15 pname = "hickle";
16 version = "5.0.2";
17 disabled = pythonOlder "3.5";
18
19 src = fetchPypi {
20 inherit pname version;
21 hash = "sha256-2+7OF/a89jK/zLhbk/Q2A+zsKnfRbq3YMKGycEWsLEQ=";
22 };
23
24 postPatch = ''
25 substituteInPlace tox.ini --replace "--cov=./hickle" ""
26 '';
27
28 propagatedBuildInputs = [ h5py numpy dill ];
29
30 checkInputs = [
31 pytestCheckHook scipy pandas astropy
32 ];
33
34 pythonImportsCheck = [ "hickle" ];
35
36 meta = {
37 description = "Serialize Python data to HDF5";
38 homepage = "https://github.com/telegraphic/hickle";
39 license = lib.licenses.mit;
40 maintainers = with lib.maintainers; [ bcdarwin ];
41 };
42}