guix_mirror_bot pushed a commit to branch python-team
in repository guix.
commit f4fbbc99cd69e471750206e5618db5b83f8add33
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Tue Jan 27 15:50:56 2026 +0000
gnu: jack-select: Switch to pyproject.
* gnu/packages/music.scm (jack-select): Use G-Expressions.
[build-system]: Switch to pyproject-build-system.
[phases]{configure, build, install}: Use phases from
pyproject-build-system.
{fix-libasound-path}: New phase.
[inputs]: Remove python-dbus and python-wrapper; add gtk+ and
python-dbus-python.
[native-inputs]: Add python-setuptools.
Change-Id: Ic82c8bb0386811f207cafd9b0612c44c9ff9c373
---
gnu/packages/music.scm | 45 ++++++++++++++++-----------------------------
1 file changed, 16 insertions(+), 29 deletions(-)
diff --git a/gnu/packages/music.scm b/gnu/packages/music.scm
index 1fadfdaa56..cc0fb38658 100644
--- a/gnu/packages/music.scm
+++ b/gnu/packages/music.scm
@@ -3611,41 +3611,28 @@ can connect to any JACK port and record the output into
a stereo WAV file.")
(sha256
(base32
"1zijk9ly2fczxsnnrqr8s0ajmlyx1j1vd8gk0rm5dj5zyhhmia7f"))))
- (build-system gnu-build-system)
+ (build-system pyproject-build-system)
(arguments
- `(#:modules ((guix build gnu-build-system)
- ((guix build python-build-system) #:prefix python:)
- (guix build utils))
- #:imported-modules (,@%default-gnu-imported-modules
- (guix build python-build-system))
- #:make-flags
- (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
- #:tests? #f ; there are none
- #:phases
- (modify-phases %standard-phases
- (replace 'configure
- (lambda* (#:key inputs #:allow-other-keys)
- ;; python-dbus cannot be found but it's really there. See
- ;; https://github.com/SpotlightKid/jack-select/issues/2
- (substitute* "setup.py"
- (("'dbus-python',") ""))
- ;; Fix reference to dlopened libraries.
- (substitute* "jackselect/alsainfo.py"
- (("libasound.so.2")
- (search-input-file inputs "/lib/libasound.so.2")))))
- (replace 'build
- (assoc-ref python:%standard-phases 'build))
- (add-after 'install 'wrap
- (assoc-ref python:%standard-phases 'wrap)))))
+ (list
+ #:tests? #f ; there are none
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'fix-libasound-path
+ (lambda* (#:key inputs #:allow-other-keys)
+ ;; Fix reference to dlopened libraries.
+ (substitute* "jackselect/alsainfo.py"
+ (("libasound.so.2")
+ (search-input-file inputs "/lib/libasound.so.2"))))))))
(native-inputs
- (list pkg-config))
+ (list pkg-config
+ python-setuptools))
(inputs
(list alsa-lib
- python-dbus
+ gtk+
+ python-dbus-python
python-pygobject
python-pyudev
- python-pyxdg
- python-wrapper))
+ python-pyxdg))
(home-page "https://github.com/SpotlightKid/jack-select")
(synopsis "Systray application to quickly change the JACK-DBus
configuration")
(description "This application displays an icon in the system tray (also