From 4b93e567b6de0e09fc8090bb6af5fc2e3211293d Mon Sep 17 00:00:00 2001 From: Aliaksandr Date: Sun, 31 May 2026 16:42:20 +0300 Subject: [PATCH] python3Packages.hdf5plugin: build Blosc filter against system c-blosc Use the snappy-enabled c-blosc so the system library can replace the vendored copy; hdf5plugin's test suite exercises Blosc's snappy codec. Assisted-by: claude-code with claude-opus-4-8[1m]-high --- pkgs/development/python-modules/hdf5plugin/default.nix | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/hdf5plugin/default.nix b/pkgs/development/python-modules/hdf5plugin/default.nix index 5a769d1cf607..cb9366c1089c 100644 --- a/pkgs/development/python-modules/hdf5plugin/default.nix +++ b/pkgs/development/python-modules/hdf5plugin/default.nix @@ -6,6 +6,7 @@ py-cpuinfo, h5py, pkgconfig, + c-blosc, c-blosc2, bzip2, charls, @@ -19,6 +20,9 @@ avx512Support ? stdenv.hostPlatform.avx512Support, }: +let + c-blosc' = c-blosc.override { snappySupport = true; }; +in buildPythonPackage (finalAttrs: { pname = "hdf5plugin"; version = "6.0.0"; @@ -40,7 +44,7 @@ buildPythonPackage (finalAttrs: { dependencies = [ h5py ]; buildInputs = [ - #c-blosc + c-blosc' c-blosc2 bzip2 charls @@ -53,12 +57,12 @@ buildPythonPackage (finalAttrs: { # opt-in to use use system libs instead env.HDF5PLUGIN_SYSTEM_LIBRARIES = lib.concatStringsSep "," [ - #"blosc" # AssertionError: 4000 not less than 4000 + "blosc" "blosc2" "bz2" "charls" "lz4" - # "snappy" # snappy tests fail + # "snappy" # not a standalone filter; provided via the snappy-enabled c-blosc above # "sperr" # not packaged? # "zfp" # pkgconfig: (lib)zfp not found "zlib"