From 66fb4f7327bf8943b4f4687b113db19af8785a10 Mon Sep 17 00:00:00 2001 From: Nicolas Graves Date: Sat, 27 Dec 2025 11:18:40 +0100 Subject: [PATCH] gnu: curseradio: Switch to pyproject. * gnu/packages/music.scm (curseradio): [build-system]: Switch to pyproject-build-system. [arguments]: Improve style. <#:test-flags>: Disable them. [native-inputs]: Add python-setuptools. Change-Id: I311b590a9456bad3ecc1979b3eb9f42b1e4a1d3c Signed-off-by: Sharlatan Hellseher --- gnu/packages/music.scm | 53 +++++++++++++++++++++--------------------- 1 file changed, 27 insertions(+), 26 deletions(-) diff --git a/gnu/packages/music.scm b/gnu/packages/music.scm index 012bcc01b4427ea0ca7c6b44c5a4b02b1c21f84e..f57d23d4ccfd8eee131d1967d97a9c2805c32494 100644 --- a/gnu/packages/music.scm +++ b/gnu/packages/music.scm @@ -4060,33 +4060,34 @@ as a tool for live performances or general audio and event filtering.") (package (name "curseradio") (version (git-version "0" revision commit)) - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/chronitis/curseradio") - (commit commit))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "11bf0jnj8h2fxhpdp498189r4s6b47vy4wripv0z4nx7lxajl88i")))) - (build-system python-build-system) - (arguments - `(#:phases - (modify-phases %standard-phases - (add-after 'unpack 'link-to-mpv - (lambda* (#:key inputs #:allow-other-keys) - (substitute* "curseradio/curseradio.py" - (("/usr/bin/mpv") - (search-input-file inputs "/bin/mpv")))))))) - (propagated-inputs - (list python-lxml python-requests python-pyxdg)) - (inputs - (list mpv)) - (home-page "https://github.com/chronitis/curseradio") - (synopsis "Command-line Internet radio player") - (description "Curseradio is a Curses-based radio player that uses a + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/chronitis/curseradio") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "11bf0jnj8h2fxhpdp498189r4s6b47vy4wripv0z4nx7lxajl88i")))) + (build-system pyproject-build-system) + (arguments + (list + #:tests? #f ; No tests. + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'link-to-mpv + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "curseradio/curseradio.py" + (("/usr/bin/mpv") + (search-input-file inputs "/bin/mpv")))))))) + (native-inputs (list python-setuptools)) + (propagated-inputs (list python-lxml python-requests python-pyxdg)) + (inputs (list mpv)) + (home-page "https://github.com/chronitis/curseradio") + (synopsis "Command-line Internet radio player") + (description "Curseradio is a Curses-based radio player that uses a tune-in sender list from @url{http://opml.radiotime.com}.") - (license license:expat)))) + (license license:expat)))) (define-public pianobar (package