From 62e5611233cf8269cf70729ad99b61b0428e59f3 Mon Sep 17 00:00:00 2001 From: Nicolas Graves Date: Wed, 24 Dec 2025 18:09:14 +0100 Subject: [PATCH] gnu: python-simpleaudio: Switch to pyproject. * gnu/packages/python-xyz.scm (python-simpleaudio): [source]: Switch to git-fetch. [build-system]: Switch to pyproject-build-system. [arguments]<#:tests?>: Enable them. <#:test-backend>: Set it. <#:phases>: Add phase 'fix-test-run. [native-inputs]: Add python-setuptools. Change-Id: Ibad8cf2ae98699fec69c3961a804dfa6a9155ef4 Signed-off-by: Sharlatan Hellseher --- gnu/packages/python-xyz.scm | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index f739d539fb351330bdf8dc57b5f875884b18bf19..f1b2e75b70ac3ba0b416584eee0560776b4fb0bf 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -6737,18 +6737,25 @@ videos in a notebook.") (version "1.0.4") (source (origin - (method url-fetch) - (uri (pypi-uri "simpleaudio" version)) + (method git-fetch) + (uri (git-reference + (url "https://github.com/hamiltron/py-simple-audio") + (commit version))) + (file-name (git-file-name name version)) (sha256 - (base32 - "07glihg0fpca0gvbbvqs9q815w8xhflzdvg72yvlsm23j9j8h739")))) - (build-system python-build-system) + (base32 "12nypzb1m14yip4zrbzin5jc5awyp1d5md5y40g5anj4phb4hx1i")))) + (build-system pyproject-build-system) (arguments - `(#:tests? #f)) - (inputs - (list alsa-lib)) - (home-page - "https://github.com/hamiltron/py-simple-audio") + (list + #:test-backend #~'unittest + #:phases + #~(modify-phases %standard-phases + (add-before 'check 'fix-test-run + (lambda _ + (delete-file-recursively "simpleaudio")))))) + (native-inputs (list python-setuptools)) + (inputs (list alsa-lib)) + (home-page "https://github.com/hamiltron/py-simple-audio") (synopsis "Simple, asynchronous audio playback for Python 3") (description "The @code{simplaudio} package provides cross-platform, dependency-free