1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, h5py 5}: 6 7buildPythonPackage rec { 8 pname = "hdf5plugin"; 9 version = "4.3.0"; 10 format = "setuptools"; 11 12 src = fetchFromGitHub { 13 owner = "silx-kit"; 14 repo = "hdf5plugin"; 15 rev = "refs/tags/v${version}"; 16 hash = "sha256-xOSGykG6D2Am/gnAPoqLOvIQz6FfxRQe9lPyRHxUoew="; 17 }; 18 19 propagatedBuildInputs = [ 20 h5py 21 ]; 22 23 checkPhase = '' 24 python test/test.py 25 ''; 26 pythonImportsCheck = [ 27 "hdf5plugin" 28 ]; 29 30 preBuild = '' 31 mkdir src/hdf5plugin/plugins 32 ''; 33 34 meta = with lib; { 35 description = "Additional compression filters for h5py"; 36 longDescription = '' 37 hdf5plugin provides HDF5 compression filters and makes them usable from h5py. 38 Supported encodings: Blosc, Blosc2, BitShuffle, BZip2, FciDecomp, LZ4, SZ, SZ3, Zfp, ZStd 39 ''; 40 homepage = "http://www.silx.org/doc/hdf5plugin/latest/"; 41 license = licenses.mit; 42 maintainers = with maintainers; [ pbsds ]; 43 }; 44 45}