diff options
| author | Ricardo Wurmus <rekado@elephly.net> | 2026-01-15 19:00:33 +0100 |
|---|---|---|
| committer | Ricardo Wurmus <rekado@elephly.net> | 2026-01-15 19:01:40 +0100 |
| commit | ab644ad9aec318092f287b95bc00416fe1f08c68 (patch) | |
| tree | b5225ebcf2e6c91133019ea6016cfc8599f42edf /gnu/packages/mpd.scm | |
| parent | 8a2a2a54b53bb73faf40c1b7566de32bed2b197e (diff) | |
gnu: sonata: Update to 1.7.3.
This fixes the broken build.
* gnu/packages/mpd.scm (sonata): Update to 1.7.3.
[build-system]: Use pyproject-build-system.
[arguments]: Disable tests; add phase 'fix-importlib; use G-expression.
[native-inputs]: Add python-setuptools and python-wheel.
Change-Id: If252fb6d56e85466bedac9e7536e8d267161686a
Diffstat (limited to 'gnu/packages/mpd.scm')
| -rw-r--r-- | gnu/packages/mpd.scm | 46 |
1 files changed, 27 insertions, 19 deletions
diff --git a/gnu/packages/mpd.scm b/gnu/packages/mpd.scm index 9b5ea768a76..171e5483803 100644 --- a/gnu/packages/mpd.scm +++ b/gnu/packages/mpd.scm | |||
| @@ -7,7 +7,7 @@ | |||
| 7 | ;;; Copyright © 2016, 2018, 2019, 2020 Leo Famulari <leo@famulari.name> | 7 | ;;; Copyright © 2016, 2018, 2019, 2020 Leo Famulari <leo@famulari.name> |
| 8 | ;;; Copyright © 2018–2021 Tobias Geerinckx-Rice <me@tobias.gr> | 8 | ;;; Copyright © 2018–2021 Tobias Geerinckx-Rice <me@tobias.gr> |
| 9 | ;;; Copyright © 2019 Evan Straw <evan.straw99@gmail.com> | 9 | ;;; Copyright © 2019 Evan Straw <evan.straw99@gmail.com> |
| 10 | ;;; Copyright © 2020, 2021 Ricardo Wurmus <rekado@elephly.net> | 10 | ;;; Copyright © 2020, 2021, 2026 Ricardo Wurmus <rekado@elephly.net> |
| 11 | ;;; Copyright © 2020 Lars-Dominik Braun <lars@6xq.net> | 11 | ;;; Copyright © 2020 Lars-Dominik Braun <lars@6xq.net> |
| 12 | ;;; Copyright © 2020–2023 Simon Streit <simon@netpanic.org> | 12 | ;;; Copyright © 2020–2023 Simon Streit <simon@netpanic.org> |
| 13 | ;;; Copyright © 2021 Noah Evans <noah@nevans.me> | 13 | ;;; Copyright © 2021 Noah Evans <noah@nevans.me> |
| @@ -392,7 +392,7 @@ interface for the Music Player Daemon.") | |||
| 392 | (define-public sonata | 392 | (define-public sonata |
| 393 | (package | 393 | (package |
| 394 | (name "sonata") | 394 | (name "sonata") |
| 395 | (version "1.7.0") | 395 | (version "1.7.3") |
| 396 | (source (origin | 396 | (source (origin |
| 397 | (method git-fetch) | 397 | (method git-fetch) |
| 398 | (uri (git-reference | 398 | (uri (git-reference |
| @@ -401,28 +401,36 @@ interface for the Music Player Daemon.") | |||
| 401 | (file-name (git-file-name name version)) | 401 | (file-name (git-file-name name version)) |
| 402 | (sha256 | 402 | (sha256 |
| 403 | (base32 | 403 | (base32 |
| 404 | "0rl8w7s2asff626clzfvyz987l2k4ml5dg417mqp9v8a962q0v2x")))) | 404 | "0jipamk3gq85kxhq8vd6sw5rjyiyx5cfadafikc5k0q0fw67w83v")))) |
| 405 | (build-system python-build-system) | 405 | (build-system pyproject-build-system) |
| 406 | (arguments | 406 | (arguments |
| 407 | `(#:modules ((guix build gnu-build-system) | 407 | (list |
| 408 | (guix build python-build-system) | 408 | ;; Invalid command "test" |
| 409 | #:tests? #false | ||
| 410 | #:modules '((guix build gnu-build-system) | ||
| 411 | (guix build pyproject-build-system) | ||
| 409 | ((guix build glib-or-gtk-build-system) #:prefix glib-or-gtk:) | 412 | ((guix build glib-or-gtk-build-system) #:prefix glib-or-gtk:) |
| 410 | (guix build utils)) | 413 | (guix build utils)) |
| 411 | #:imported-modules (,@%default-gnu-imported-modules | 414 | #:imported-modules `(,@%pyproject-build-system-modules |
| 412 | (guix build python-build-system) | ||
| 413 | (guix build glib-or-gtk-build-system)) | 415 | (guix build glib-or-gtk-build-system)) |
| 414 | #:phases | 416 | #:phases |
| 415 | (modify-phases %standard-phases | 417 | #~(modify-phases %standard-phases |
| 416 | (add-after 'install 'glib-or-gtk-wrap | 418 | (add-after 'install 'glib-or-gtk-wrap |
| 417 | (assoc-ref glib-or-gtk:%standard-phases 'glib-or-gtk-wrap)) | 419 | (assoc-ref glib-or-gtk:%standard-phases 'glib-or-gtk-wrap)) |
| 418 | (add-after 'install 'wrap-sonata | 420 | (add-after 'unpack 'fix-importlib |
| 419 | (lambda* (#:key outputs #:allow-other-keys) | 421 | (lambda _ |
| 420 | (let ((out (assoc-ref outputs "out")) | 422 | (substitute* "sonata/main.py" |
| 421 | (gi-typelib-path (getenv "GI_TYPELIB_PATH"))) | 423 | (("importlib.resources.files\\(__name__\\)") |
| 422 | (wrap-program (string-append out "/bin/sonata") | 424 | "importlib.resources.files(\"sonata\")")))) |
| 423 | `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))))))) | 425 | (add-after 'wrap 'wrap-sonata |
| 426 | (lambda _ | ||
| 427 | (let ((gi-typelib-path (getenv "GI_TYPELIB_PATH"))) | ||
| 428 | (wrap-program (string-append #$output "/bin/sonata") | ||
| 429 | `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))))))) | ||
| 424 | (native-inputs | 430 | (native-inputs |
| 425 | (list gettext-minimal)) | 431 | (list gettext-minimal |
| 432 | python-setuptools | ||
| 433 | python-wheel)) | ||
| 426 | (inputs | 434 | (inputs |
| 427 | (list bash-minimal | 435 | (list bash-minimal |
| 428 | python-mpd2 | 436 | python-mpd2 |
