File tree Expand file tree Collapse file tree 2 files changed +39
-3
lines changed
development/python-modules/hdf5plugin Expand file tree Collapse file tree 2 files changed +39
-3
lines changed Original file line number Diff line number Diff line change 55 setuptools ,
66 py-cpuinfo ,
77 h5py ,
8+ pkgconfig ,
9+ c-blosc2 ,
10+ charls ,
11+ lz4 ,
12+ zlib ,
13+ zstd ,
814} :
915
1016buildPythonPackage rec {
1117 pname = "hdf5plugin" ;
12- version = "5.0 .0" ;
18+ version = "5.1 .0" ;
1319 pyproject = true ;
1420
1521 src = fetchFromGitHub {
1622 owner = "silx-kit" ;
1723 repo = "hdf5plugin" ;
1824 tag = "v${ version } " ;
19- hash = "sha256-6lEU8ZGJKazDqloel5QcaXAbNGzV1fAbAjYC/hFUOdI =" ;
25+ hash = "sha256-12OWsNZfKToNLyokNrwgPc7WRISJI4nRA0J/zwgCZwI =" ;
2026 } ;
2127
2228 build-system = [
2329 setuptools
2430 py-cpuinfo
31+ pkgconfig # only needed if HDF5PLUGIN_SYSTEM_LIBRARIES is used
2532 ] ;
2633
2734 dependencies = [ h5py ] ;
2835
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+
2962 checkPhase = ''
3063 python test/test.py
3164 '' ;
65+
3266 pythonImportsCheck = [ "hdf5plugin" ] ;
3367
3468 preBuild = ''
Original file line number Diff line number Diff line change @@ -6256,7 +6256,9 @@ self: super: with self; {
62566256
62576257 hdbscan = callPackage ../development/python-modules/hdbscan { };
62586258
6259- hdf5plugin = callPackage ../development/python-modules/hdf5plugin { };
6259+ hdf5plugin = callPackage ../development/python-modules/hdf5plugin {
6260+ inherit (pkgs) zstd lz4;
6261+ };
62606262
62616263 hdfs = callPackage ../development/python-modules/hdfs { };
62626264
You can’t perform that action at this time.
0 commit comments