summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2025-09-20 13:29:17 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-09-20 16:18:50 +0100
commitffb37681c62caca2c06212c4efa33afc6c11ca24 (patch)
treef1dcbaeb6c82edbc868c5e22a4e978cc1db707de
parent9e799d1f29f8ec2d4054b6b954375b1a119756f2 (diff)
gnu: python-blosc2: Switch to pyproejct, fix build.
* gnu/packages/python-compression.scm (python-blosc2)[build-system]: Switch to pyproejct-build-system. [arguments] <tests-flags>: Provide option to run tests agains installed libarary. <phases>: Use default 'build and 'check; add 'configure. [native-inputs]: Add python-setuptools. Change-Id: I62025cad68dd83a9b6f1dddea34840be38112f09
-rw-r--r--gnu/packages/python-compression.scm22
1 files changed, 11 insertions, 11 deletions
diff --git a/gnu/packages/python-compression.scm b/gnu/packages/python-compression.scm
index f78324df34..1ae2643270 100644
--- a/gnu/packages/python-compression.scm
+++ b/gnu/packages/python-compression.scm
@@ -118,17 +118,16 @@ This Python package wraps the Blosc library.")
(uri (pypi-uri "blosc2" version))
(sha256
(base32 "1s4gpdf1hfbw5w3hpx0g8bfwjrws1b8wgmh7snafh5ivai0lvnrl"))))
- (build-system python-build-system)
+ (build-system pyproject-build-system)
(arguments
- (list #:phases #~(modify-phases %standard-phases
- (replace 'build
- (lambda* (#:key inputs #:allow-other-keys)
- (invoke "python" "setup.py" "build"
- "-DUSE_SYSTEM_BLOSC2=ON")))
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- (when tests?
- (invoke "python" "-m" "pytest" "-vv")))))))
+ (list
+ #:test-flags
+ #~(list "--pyargs" "blosc2")
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'build 'configure
+ (lambda _
+ (setenv "USE_SYSTEM_BLOSC2" "ON"))))))
(inputs (list c-blosc2))
(propagated-inputs
(list python-msgpack
@@ -141,7 +140,8 @@ This Python package wraps the Blosc library.")
pkg-config
python-cython-3
python-pytest
- python-scikit-build))
+ python-scikit-build
+ python-setuptools))
(home-page "https://github.com/blosc/python-blosc2")
(synopsis "Python wrapper for the Blosc2 data compressor library")
(description