summaryrefslogtreecommitdiff
path: root/gnu/packages/python-compression.scm
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2025-07-31 22:11:41 +0200
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-08-07 18:33:34 +0100
commit2eb2d3ba2340684116da2a84948c3c0f89d0a1d6 (patch)
treeddeb835f8e9f5f05ec5d2df322ae4859aa16c028 /gnu/packages/python-compression.scm
parent4bf7fec9b0186184dbc69aa9d6e56b6a2ca35439 (diff)
gnu: python-pyzstd: Switch to pyproject.
* gnu/packages/python-compression.scm (python-pyzstd): [build-system]: Switch to pyproject-build-system. [arguments]<#:configure-flags>: Migrate option. <#:phases>: Remove them. [native-inputs]: Add python-pytest, python-setuptools, python-wheel. [home-page]: Refresh. Change-Id: I9a2fb36bfce24a81be9c70983781da5a3decc5a2 Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages/python-compression.scm')
-rw-r--r--gnu/packages/python-compression.scm23
1 files changed, 6 insertions, 17 deletions
diff --git a/gnu/packages/python-compression.scm b/gnu/packages/python-compression.scm
index 4361c0b65e..5ebf0c59ca 100644
--- a/gnu/packages/python-compression.scm
+++ b/gnu/packages/python-compression.scm
@@ -932,27 +932,16 @@ provided.")
'(begin
;; Remove a bundled copy of the zstd sources.
(delete-file-recursively "zstd")))))
- (build-system python-build-system)
+ (build-system pyproject-build-system)
(arguments
(list
+ ;; XXX: This is ugly. TODO python-team:
+ ;; Migrate pyproject to (json) instead of (guix build json).
#:configure-flags
- #~(list "--dynamic-link-zstd")
- #:phases
- #~(modify-phases %standard-phases
- (replace 'build
- ;; The python-build-system's phase doesn't honour configure-flags.
- (lambda* (#:key configure-flags #:allow-other-keys)
- (apply invoke "python" "./setup.py" "build"
- configure-flags)))
- (replace 'check
- ;; The python-build-system's phase doesn't honour configure-flags.
- (lambda* (#:key tests? test-target configure-flags
- #:allow-other-keys)
- (when tests?
- (apply invoke "python" "./setup.py" test-target
- configure-flags)))))))
+ #~`(@ . (("--build-option" . "--dynamic-link-zstd")))))
(inputs (list `(,zstd "lib")))
- (home-page "https://github.com/animalize/pyzstd")
+ (native-inputs (list python-pytest python-setuptools python-wheel))
+ (home-page "https://github.com/Rogdham/pyzstd")
(synopsis "Zstandard bindings for Python")
(description "This package provides Python bindings to the Zstandard (zstd)
compression library. The API is similar to Python's bz2/lzma/zlib module.")