2023-02-02 18:25:31 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, h5py
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "hdf5plugin";
|
2024-02-29 20:09:43 +00:00
|
|
|
version = "4.4.0";
|
2023-02-02 18:25:31 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "silx-kit";
|
|
|
|
repo = "hdf5plugin";
|
|
|
|
rev = "refs/tags/v${version}";
|
2024-02-29 20:09:43 +00:00
|
|
|
hash = "sha256-MnqY1PyGzo31H696J9CekiA2rJrUYzUMDC3UJMZaFLA=";
|
2023-02-02 18:25:31 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
dependencies = [
|
2023-02-02 18:25:31 +00:00
|
|
|
h5py
|
|
|
|
];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
python test/test.py
|
|
|
|
'';
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"hdf5plugin"
|
|
|
|
];
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
mkdir src/hdf5plugin/plugins
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Additional compression filters for h5py";
|
|
|
|
longDescription = ''
|
|
|
|
hdf5plugin provides HDF5 compression filters and makes them usable from h5py.
|
|
|
|
Supported encodings: Blosc, Blosc2, BitShuffle, BZip2, FciDecomp, LZ4, SZ, SZ3, Zfp, ZStd
|
|
|
|
'';
|
|
|
|
homepage = "http://www.silx.org/doc/hdf5plugin/latest/";
|
|
|
|
license = licenses.mit;
|
2023-08-10 07:59:29 +00:00
|
|
|
maintainers = with maintainers; [ pbsds ];
|
2023-02-02 18:25:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|