~ruther/guix-local

c1d2c2035800277cb5c06f97eb3eb5720d902bd6 — Nicolas Graves 2 months ago a7a18db
gnu: python-pulsectl: Update to 24.12.0.

* gnu/packages/audio.scm (python-pulsectl): Update to 24.12.0.
[source]: Switch to git-fetch.
[build-system]: Switch to pyproject-build-system.
[arguments]<#:phases>: Improve style.
[native-inputs]: Add python-setuptools.

Change-Id: I7e299deb86da14dbff1053a1a2d747965d62b7fb
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
1 files changed, 23 insertions(+), 19 deletions(-)

M gnu/packages/audio.scm
M gnu/packages/audio.scm => gnu/packages/audio.scm +23 -19
@@ 3635,27 3635,31 @@ cross-platform audio input/output stream library.")
(define-public python-pulsectl
  (package
    (name "python-pulsectl")
    (version "24.4.0")
    (source (origin
              (method url-fetch)
              (uri (pypi-uri "pulsectl" version))
              (sha256
               (base32
                "0r9igs365cqgrn1m55a8qjz0hc446nwjm3p3i9kphbj5gl7dazk9"))))
    (build-system python-build-system)
    (inputs (list pulseaudio))
    (version "24.12.0")
    (source
     (origin
       (method git-fetch)
       (uri (git-reference
             (url "https://github.com/mk-fg/python-pulse-control")
             (commit version)))
       (file-name (git-file-name name version))
       (sha256
        (base32 "1f15w2312j2yc9bs689dvdgq891sjrp5x3q1vf08743px70gxc1m"))))
    (build-system pyproject-build-system)
    (arguments
     `(#:tests? #f                      ; tests try to communicate with PulseAudio
       #:phases
       (modify-phases %standard-phases
         (add-after 'unpack 'patch-path
           (lambda* (#:key inputs #:allow-other-keys)
             (substitute* "pulsectl/_pulsectl.py"
               (("libpulse.so.0")
                (string-append (search-input-file inputs "/lib/libpulse.so.0")))))))))
     (list
      #:tests? #f ;tests try to communicate with PulseAudio
      #:phases
      #~(modify-phases %standard-phases
          (add-after 'unpack 'patch-path
            (lambda* (#:key inputs #:allow-other-keys)
              (substitute* "pulsectl/_pulsectl.py"
                (("libpulse.so.0")
                 (search-input-file inputs "/lib/libpulse.so.0"))))))))
    (native-inputs (list python-setuptools))
    (inputs (list pulseaudio))
    (home-page "https://github.com/mk-fg/python-pulse-control")
    (synopsis
     "Python bindings for mixer-like controls in PulseAudio")
    (synopsis "Python bindings for mixer-like controls in PulseAudio")
    (description
     "This package provides a Python high-level interface and ctypes-based
bindings for PulseAudio (libpulse), to use in simple synchronous code.