From 4e8daba8372d0b00c294f085039361df3f3e6547 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 5 Aug 2025 12:35:25 +0100 Subject: [PATCH] gnu: python-blosc: Update to 1.11.3. * gnu/packages/python-compression.scm (python-blosc): Update to 1.11.3. [build-system]: Use pyproject. [arguments] : Use 'custom. : Use default 'check. [propagated-inputs]: Remove python-numpy. [native-inputs]: Add ninja/pinned, python-numpy, python-psutil, python-py-cpuinfo, and python-setuptools. Change-Id: I1b2169c04a0216e9a8e7ca872c08e5043b00209f --- gnu/packages/python-compression.scm | 39 +++++++++++++++++------------ 1 file changed, 23 insertions(+), 16 deletions(-) diff --git a/gnu/packages/python-compression.scm b/gnu/packages/python-compression.scm index 8170063c72221f5a3f21fec29d0dc77b852f9696..4d659a6b5ac80c93fc8b2933d96cd2d0072c10be 100644 --- a/gnu/packages/python-compression.scm +++ b/gnu/packages/python-compression.scm @@ -46,6 +46,7 @@ #:use-module (gnu packages cmake) #:use-module (gnu packages check) #:use-module (gnu packages maths) + #:use-module (gnu packages ninja) #:use-module (gnu packages pkg-config) #:use-module (gnu packages python) #:use-module (gnu packages python-build) @@ -60,33 +61,39 @@ (define-public python-blosc (package (name "python-blosc") - (version "1.11.1") + (version "1.11.3") (source (origin (method url-fetch) (uri (pypi-uri "blosc" version)) (sha256 (base32 - "0xmjs28sgpnb940zrhw010dq2m9d8a5h4fgnjyk6645fgfr1j8f2")) + "13h8ks58iy4h3ayk7havb4hmkma88598qkf4i4paj53qpa76bvc9")) (snippet #~(begin (use-modules (guix build utils)) (delete-file-recursively "blosc/c-blosc"))))) - (build-system python-build-system) + (build-system pyproject-build-system) (arguments - (list #:phases - #~(modify-phases %standard-phases - (add-after 'unpack 'find-blosc - (lambda _ - (setenv "USE_SYSTEM_BLOSC" "1") - (setenv "Blosc_ROOT" #$(this-package-input "c-blosc")))) - (replace 'check - (lambda* (#:key tests? #:allow-other-keys) - (when tests? - (invoke "python" "-m" "blosc.test"))))))) + (list + #:test-backend #~'custom + #:test-flags #~(list "-m" "blosc.test") + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'find-blosc + (lambda _ + (setenv "USE_SYSTEM_BLOSC" "1") + (setenv "Blosc_ROOT" #$(this-package-input "c-blosc"))))))) (propagated-inputs - (list python-scikit-build python-numpy)) - (inputs (list c-blosc)) - (native-inputs (list cmake-minimal)) + (list python-scikit-build)) + (inputs + (list c-blosc)) + (native-inputs + (list cmake-minimal + ninja/pinned + python-numpy + python-psutil + python-py-cpuinfo + python-setuptools)) (home-page "https://github.com/blosc/python-blosc") (synopsis "Python wrapper for the Blosc data compressor library") (description "Blosc is a high performance compressor optimized for binary