at 24.05-pre 1.3 kB view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, pythonOlder 5, h5py 6, numpy 7, dill 8, astropy 9, scipy 10, pandas 11, pytestCheckHook 12}: 13 14buildPythonPackage rec { 15 pname = "hickle"; 16 version = "5.0.2"; 17 format = "setuptools"; 18 19 disabled = pythonOlder "3.5"; 20 21 src = fetchPypi { 22 inherit pname version; 23 hash = "sha256-2+7OF/a89jK/zLhbk/Q2A+zsKnfRbq3YMKGycEWsLEQ="; 24 }; 25 26 postPatch = '' 27 substituteInPlace tox.ini \ 28 --replace "--cov=./hickle" "" 29 ''; 30 31 propagatedBuildInputs = [ 32 dill 33 h5py 34 numpy 35 ]; 36 37 nativeCheckInputs = [ 38 astropy 39 pandas 40 pytestCheckHook 41 scipy 42 ]; 43 44 pythonImportsCheck = [ 45 "hickle" 46 ]; 47 48 disabledTests = [ 49 # broken in 5.0.2 with recent NumPy 50 # see https://github.com/telegraphic/hickle/issues/174 51 "test_scalar_compression" 52 # broken in 5.0.2 with Python 3.11 53 # see https://github.com/telegraphic/hickle/issues/169 54 "test_H5NodeFilterProxy" 55 # broken in 5.0.2 56 "test_slash_dict_keys" 57 ]; 58 59 meta = with lib; { 60 description = "Serialize Python data to HDF5"; 61 homepage = "https://github.com/telegraphic/hickle"; 62 changelog = "https://github.com/telegraphic/hickle/releases/tag/v${version}"; 63 license = licenses.mit; 64 maintainers = with maintainers; [ bcdarwin ]; 65 }; 66}