guix_mirror_bot pushed a commit to branch python-team
in repository guix.
commit 35113076db963afdf279620ca8c6cca33de7b837
Author: Nicolas Graves <[email protected]>
AuthorDate: Wed Jan 28 09:45:39 2026 +0100
gnu: soundconverter: Switch to pyproject.
* gnu/packages/gnome.scm (soundconverter):
[arguments]: Improve style, use gexps.
<#:imported-modules, #:modules>: Switch to pyproject-build-system.
Cleanup unecessary use of gnu build-system modules.
<#:phases>: Migrate phase 'wrap-soundconverter-for-python to
pyproject. Improve phase 'wrap-soundconverter.
Change-Id: I62b8b15c383c899adcf9226e0396efc31588b0d6
Signed-off-by: Sharlatan Hellseher <[email protected]>
---
gnu/packages/gnome.scm | 44 ++++++++++++++++++++------------------------
1 file changed, 20 insertions(+), 24 deletions(-)
diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index fde5b18b91..6d38cc217c 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -11920,32 +11920,28 @@ mp3, Ogg Vorbis and FLAC")
(base32 "1jv8m82hi23ilrgdznlc1jhp2jm8bw1yrw0chh3qw2l0sixvkl11"))))
(build-system glib-or-gtk-build-system)
(arguments
- `(#:imported-modules ((guix build python-build-system)
- (guix build glib-or-gtk-build-system)
- ,@%default-gnu-imported-modules)
-
- #:modules ((guix build glib-or-gtk-build-system)
+ (list
+ #:imported-modules (append %glib-or-gtk-build-system-modules
+ %pyproject-build-system-modules)
+ #:modules '((guix build glib-or-gtk-build-system)
(guix build utils)
- ((guix build gnu-build-system) #:prefix gnu:)
- ((guix build python-build-system) #:prefix python:))
-
- #:phases
- (modify-phases %standard-phases
- (add-after 'install 'wrap-soundconverter-for-python
- (assoc-ref python:%standard-phases 'wrap))
- (add-after 'install 'wrap-soundconverter
- (lambda* (#:key inputs outputs #:allow-other-keys)
- (let ((out (assoc-ref outputs "out"))
- (gi-typelib-path (getenv "GI_TYPELIB_PATH"))
- (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH")))
- (wrap-program (string-append out "/bin/soundconverter")
- `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))
- `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))))
- #t)))))
+ ((guix build pyproject-build-system) #:prefix py:))
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'install 'wrap-soundconverter-for-python
+ (assoc-ref py:%standard-phases 'wrap))
+ (add-after 'install 'wrap-soundconverter
+ (lambda _
+ (let ((gi-typelib-path (getenv "GI_TYPELIB_PATH"))
+ (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH")))
+ (wrap-program (string-append #$output "/bin/soundconverter")
+ `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))
+ `("GST_PLUGIN_SYSTEM_PATH" ":" prefix
+ (,gst-plugin-path)))))))))
(native-inputs
- `(("intltool" ,intltool)
- ("pkg-config" ,pkg-config)
- ("glib:bin" ,glib "bin")))
+ (list intltool
+ pkg-config
+ (list glib "bin")))
(inputs
(list bash-minimal
gtk+