Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at gcc-offload 48 lines 1.0 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 py-cpuinfo, 7 h5py, 8}: 9 10buildPythonPackage rec { 11 pname = "hdf5plugin"; 12 version = "5.0.0"; 13 pyproject = true; 14 15 src = fetchFromGitHub { 16 owner = "silx-kit"; 17 repo = "hdf5plugin"; 18 rev = "refs/tags/v${version}"; 19 hash = "sha256-6lEU8ZGJKazDqloel5QcaXAbNGzV1fAbAjYC/hFUOdI="; 20 }; 21 22 build-system = [ 23 setuptools 24 py-cpuinfo 25 ]; 26 27 dependencies = [ h5py ]; 28 29 checkPhase = '' 30 python test/test.py 31 ''; 32 pythonImportsCheck = [ "hdf5plugin" ]; 33 34 preBuild = '' 35 mkdir src/hdf5plugin/plugins 36 ''; 37 38 meta = with lib; { 39 description = "Additional compression filters for h5py"; 40 longDescription = '' 41 hdf5plugin provides HDF5 compression filters and makes them usable from h5py. 42 Supported encodings: Blosc, Blosc2, BitShuffle, BZip2, FciDecomp, LZ4, SZ, SZ3, Zfp, ZStd 43 ''; 44 homepage = "http://www.silx.org/doc/hdf5plugin/latest/"; 45 license = licenses.mit; 46 maintainers = with maintainers; [ pbsds ]; 47 }; 48}