diff options
| author | Evgenii Klimov <eugene.dev@lipklim.org> | 2025-09-25 21:30:06 +0100 |
|---|---|---|
| committer | Gabriel Wicki <gabriel@erlikon.ch> | 2025-12-02 09:51:16 +0100 |
| commit | e83b1badf90ff9dc013b28454aeb932b14d6a990 (patch) | |
| tree | d17748ca9831774fc72632bb085bd3f2362debf8 /gnu | |
| parent | f61f15410d3db6da7cbde7fe1c00d4a4fad58a7c (diff) | |
gnu: Add python-sounddevice.
* gnu/packages/audio.scm (python-sounddevice): New variable.
Change-Id: Ia4bb0b52aab812232f82ca299b29e429d07007ce
Signed-off-by: Gabriel Wicki <gabriel@erlikon.ch>
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/audio.scm | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/gnu/packages/audio.scm b/gnu/packages/audio.scm index d52bfb0f69c..ae5b1b0374b 100644 --- a/gnu/packages/audio.scm +++ b/gnu/packages/audio.scm @@ -58,6 +58,7 @@ ;;; Copyright © 2024 Janneke Nieuwenhuizen <janneke@gnu.org> ;;; Copyright © 2025 Antoine Côté <antoine.cote@posteo.net> ;;; Copyright © 2025 Isidor Zeuner <guix@quidecco.pl> +;;; Copyright © 2025 Evgenii Klimov <eugene.dev@lipklim.org> ;;; ;;; This file is part of GNU Guix. ;;; @@ -249,6 +250,39 @@ promoting the market for advanced audio.") (home-page "https://www.khronos.org/opensles/") (license (license:non-copyleft "file:///LICENSE.txt")))) +(define-public python-sounddevice + (package + (name "python-sounddevice") + (version "0.5.3") + (source + (origin + (method url-fetch) + (uri (pypi-uri "sounddevice" version)) + (sha256 + (base32 "0b4vcaj79sy9aqsrgcszkp35x2fc0i4pqzk96d2viflg35h2pb6b")))) + (build-system pyproject-build-system) + (arguments + (list #:tests? #false ; no tests + #:phases + #~(modify-phases %standard-phases + (add-after 'patch-generated-file-shebangs 'add-path-to-portaudio + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "sounddevice.py" + (("_find_library\\(_libname\\)") + (string-append "\"" + (search-input-file inputs + "/lib/libportaudio.so.2") + "\"")))))))) + (inputs (list portaudio)) + (propagated-inputs (list python-cffi python-numpy)) + (native-inputs (list python-setuptools)) + (home-page "https://python-sounddevice.readthedocs.io/") + (synopsis "Play and record sound with Python") + (description "This Python module provides bindings for the PortAudio +library and a few convenience functions to play and record NumPy arrays +containing audio signals.") + (license license:expat))) + (define-public wildmidi (package (name "wildmidi") |
