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