diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2025-12-24 18:09:14 +0100 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-12-31 12:24:14 +0000 |
| commit | 62e5611233cf8269cf70729ad99b61b0428e59f3 (patch) | |
| tree | 14f2776bdc86d9bbbd2bcdba0ae971b15db21fbf /gnu/packages/python-xyz.scm | |
| parent | 5fc8a1d6e925df2acd7146a32ed2d8c2f2a2e712 (diff) | |
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 <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages/python-xyz.scm')
| -rw-r--r-- | gnu/packages/python-xyz.scm | 27 |
1 files changed, 17 insertions, 10 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index f739d539fb3..f1b2e75b70a 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 |
