Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.6 kB · 82 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283{ lib, buildPythonPackage, fetchFromGitHub, setuptools, py-cpuinfo, h5py, pkgconfig, c-blosc2, charls, lz4, zlib, zstd,}:
buildPythonPackage rec { pname = "hdf5plugin"; version = "5.1.0"; pyproject = true;
src = fetchFromGitHub { owner = "silx-kit"; repo = "hdf5plugin"; tag = "v${version}"; hash = "sha256-12OWsNZfKToNLyokNrwgPc7WRISJI4nRA0J/zwgCZwI="; };
build-system = [ setuptools py-cpuinfo pkgconfig # only needed if HDF5PLUGIN_SYSTEM_LIBRARIES is used ];
dependencies = [ h5py ];
buildInputs = [ #c-blosc c-blosc2 # bzip2_1_1 charls lz4 # snappy # zfp zlib zstd ];
# opt-in to use use system libs instead env.HDF5PLUGIN_SYSTEM_LIBRARIES = lib.concatStringsSep "," [ #"blosc" # AssertionError: 4000 not less than 4000 "blosc2" # "bz2" # only works with bzip2_1_1 "charls" "lz4" # "snappy" # snappy tests fail # "sperr" # not packaged? # "zfp" # pkgconfig: (lib)zfp not found "zlib" "zstd" ];
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; maintainers = with maintainers; [ pbsds ]; };}