nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix

python313Packages.hdf5plugin: 5.0.0 -> 5.1.0

release: https://github.com/silx-kit/hdf5plugin/releases/tag/v5.1.0

Of note is that they added a environment variable to build filters with system libraries

+39 -3
+36 -2
pkgs/development/python-modules/hdf5plugin/default.nix
··· 5 5 setuptools, 6 6 py-cpuinfo, 7 7 h5py, 8 + pkgconfig, 9 + c-blosc2, 10 + charls, 11 + lz4, 12 + zlib, 13 + zstd, 8 14 }: 9 15 10 16 buildPythonPackage rec { 11 17 pname = "hdf5plugin"; 12 - version = "5.0.0"; 18 + version = "5.1.0"; 13 19 pyproject = true; 14 20 15 21 src = fetchFromGitHub { 16 22 owner = "silx-kit"; 17 23 repo = "hdf5plugin"; 18 24 tag = "v${version}"; 19 - hash = "sha256-6lEU8ZGJKazDqloel5QcaXAbNGzV1fAbAjYC/hFUOdI="; 25 + hash = "sha256-12OWsNZfKToNLyokNrwgPc7WRISJI4nRA0J/zwgCZwI="; 20 26 }; 21 27 22 28 build-system = [ 23 29 setuptools 24 30 py-cpuinfo 31 + pkgconfig # only needed if HDF5PLUGIN_SYSTEM_LIBRARIES is used 25 32 ]; 26 33 27 34 dependencies = [ h5py ]; 28 35 36 + buildInputs = [ 37 + #c-blosc 38 + c-blosc2 39 + # bzip2_1_1 40 + charls 41 + lz4 42 + # snappy 43 + # zfp 44 + zlib 45 + zstd 46 + ]; 47 + 48 + # opt-in to use use system libs instead 49 + env.HDF5PLUGIN_SYSTEM_LIBRARIES = lib.concatStringsSep "," [ 50 + #"blosc" # AssertionError: 4000 not less than 4000 51 + "blosc2" 52 + # "bz2" # only works with bzip2_1_1 53 + "charls" 54 + "lz4" 55 + # "snappy" # snappy tests fail 56 + # "sperr" # not packaged? 57 + # "zfp" # pkgconfig: (lib)zfp not found 58 + "zlib" 59 + "zstd" 60 + ]; 61 + 29 62 checkPhase = '' 30 63 python test/test.py 31 64 ''; 65 + 32 66 pythonImportsCheck = [ "hdf5plugin" ]; 33 67 34 68 preBuild = ''
+3 -1
pkgs/top-level/python-packages.nix
··· 6127 6127 6128 6128 hdbscan = callPackage ../development/python-modules/hdbscan { }; 6129 6129 6130 - hdf5plugin = callPackage ../development/python-modules/hdf5plugin { }; 6130 + hdf5plugin = callPackage ../development/python-modules/hdf5plugin { 6131 + inherit (pkgs) zstd lz4; 6132 + }; 6131 6133 6132 6134 hdfs = callPackage ../development/python-modules/hdfs { }; 6133 6135