unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Sergiu Ivanov <sivanov@colimite.fr>
To: 60840@debbugs.gnu.org
Subject: [bug#60840] [PATCH 2/3] gnu: packages: Add python-pulsectl.
Date: Sun, 15 Jan 2023 23:49:58 +0100	[thread overview]
Message-ID: <87h6wr8lah.fsf@colimite.fr> (raw)
In-Reply-To: <handler.60840.B.167382229432354.ack@debbugs.gnu.org>

[-- Attachment #1: 0002-gnu-packages-Add-python-pulsectl.patch --]
[-- Type: text/x-patch, Size: 2419 bytes --]

From b92cdb4ce99bc7ad45e0caba7f863db5931741db Mon Sep 17 00:00:00 2001
From: Sergiu Ivanov <sivanov@colimite.fr>
Date: Sun, 15 Jan 2023 23:16:02 +0100
Subject: [PATCH 2/3] gnu: packages: Add python-pulsectl.

* gnu/packages/audio.scm (python-pulsectl): New variable.
---
 gnu/packages/audio.scm | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

diff --git a/gnu/packages/audio.scm b/gnu/packages/audio.scm
index d72cf0ca87..391a763e45 100644
--- a/gnu/packages/audio.scm
+++ b/gnu/packages/audio.scm
@@ -40,6 +40,7 @@
 ;;; Copyright © 2022 Juliana Sims <jtsims@protonmail.com>
 ;;; Copyright © 2022 Simon Streit <simon@netpanic.org>
 ;;; Copyright © 2022 Andy Tai <atai@atai.org>
+;;; Copyright © 2023 Sergiu Ivanov <sivanov@colimite.fr>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -2779,6 +2780,39 @@ (define-public python-pyaudio
 cross-platform audio input/output stream library.")
     (license license:expat)))
 
+(define-public python-pulsectl
+  (package
+    (name "python-pulsectl")
+    (version "22.3.2")
+    (source (origin
+              (method url-fetch)
+              (uri (pypi-uri "pulsectl" version))
+              (sha256
+               (base32
+                "115ha1cwpd2r84ssnxdbr59hgs0jbx0lz3xpqli64kmxxqf4w5yc"))))
+    (build-system python-build-system)
+    (inputs (list pulseaudio))
+    (arguments
+     `(#:tests? #f
+       #:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'patch-path
+           (lambda* (#:key inputs #:allow-other-keys)
+             (let ((pulse (assoc-ref inputs "pulseaudio")))
+               (substitute* "pulsectl/_pulsectl.py"
+                 (("libpulse.so.0")
+                  (string-append pulse "/lib/libpulse.so.0")))
+               #t))))))
+    (home-page "https://github.com/mk-fg/python-pulse-control")
+    (synopsis
+     "Python bindings for mixer-like controls in PulseAudio")
+    (description
+     "Python high-level interface and ctypes-based bindings for
+PulseAudio (libpulse), to use in simple synchronous code.  This wrapper is
+mostly for mixer-like controls and introspection-related operations, as
+opposed to e.g. submitting sound samples to play and player-like client.")
+    (license license:expat)))
+
 (define-public python-pyliblo
   (package
     (name "python-pyliblo")
-- 
2.38.1





  parent reply	other threads:[~2023-01-15 22:51 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-15 22:35 [bug#60840] [PATCH 0/3] gnu: volctl: Update to 0.9.3 Sergiu Ivanov
     [not found] ` <handler.60840.B.167382229432354.ack@debbugs.gnu.org>
2023-01-15 22:46   ` [bug#60840] [PATCH 1/3] gnu: volctl: Make the synopsis line shorter Sergiu Ivanov
2023-01-16 16:56     ` [bug#60840] [PATCH 0/3] gnu: volctl: Update to 0.9.3 Maxim Cournoyer
2023-01-21 22:20       ` Sergiu Ivanov
2023-01-15 22:49   ` Sergiu Ivanov [this message]
2023-01-16 17:01     ` Maxim Cournoyer
     [not found]       ` <871qnnfqu1.fsf@univ-evry.fr>
2023-01-22 21:28         ` bug#60840: " Maxim Cournoyer
2023-01-23 17:38           ` [bug#60840] " Sergiu Ivanov
2023-01-16 17:06     ` Maxim Cournoyer
2023-01-21 22:30       ` Sergiu Ivanov
2023-01-15 22:51   ` [bug#60840] [PATCH 3/3] " Sergiu Ivanov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87h6wr8lah.fsf@colimite.fr \
    --to=sivanov@colimite.fr \
    --cc=60840@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).