~ruther/guix-local

62e5611233cf8269cf70729ad99b61b0428e59f3 — Nicolas Graves 2 months ago 5fc8a1d
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>
1 files changed, 17 insertions(+), 10 deletions(-)

M gnu/packages/python-xyz.scm
M gnu/packages/python-xyz.scm => gnu/packages/python-xyz.scm +17 -10
@@ 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