python3Packages.sounddevice: 0.5.0 -> 0.5.1

This commit is contained in:
Stefan Frijters 2024-10-28 13:15:16 +01:00
parent ff00c00206
commit 590380dc9d
No known key found for this signature in database
GPG Key ID: 7619A6BC6E7DFA6F
2 changed files with 14 additions and 11 deletions

View File

@ -13,13 +13,13 @@
buildPythonPackage rec {
pname = "sounddevice";
version = "0.5.0";
version = "0.5.1";
pyproject = true;
disabled = isPy27;
src = fetchPypi {
inherit pname version;
hash = "sha256-DelSd2VLPUA9nBXe08bO3zB+myfMnOe9mVookdDJVa8=";
hash = "sha256-CcqZHa7ajOS+mskeFamoHI+B76a2laNIyRceoMFssEE=";
};
build-system = [ setuptools ];

View File

@ -1,11 +1,11 @@
diff --git i/sounddevice.py w/sounddevice.py
index c7c1d62..aabcb12 100644
--- i/sounddevice.py
+++ w/sounddevice.py
@@ -58,29 +58,7 @@ from ctypes.util import find_library as _find_library
diff --git a/sounddevice.py b/sounddevice.py
index 0974289..2d56c28 100644
--- a/sounddevice.py
+++ b/sounddevice.py
@@ -58,32 +58,7 @@ from ctypes.util import find_library as _find_library
from _sounddevice import ffi as _ffi
-try:
- for _libname in (
- 'portaudio', # Default name on POSIX systems
@ -22,7 +22,10 @@ index c7c1d62..aabcb12 100644
- if _platform.system() == 'Darwin':
- _libname = 'libportaudio.dylib'
- elif _platform.system() == 'Windows':
- _libname = 'libportaudio' + _platform.architecture()[0] + '.dll'
- if 'SD_ENABLE_ASIO' in _os.environ:
- _libname = 'libportaudio' + _platform.architecture()[0] + '-asio.dll'
- else:
- _libname = 'libportaudio' + _platform.architecture()[0] + '.dll'
- else:
- raise
- import _sounddevice_data
@ -30,6 +33,6 @@ index c7c1d62..aabcb12 100644
- next(iter(_sounddevice_data.__path__)), 'portaudio-binaries', _libname)
- _lib = _ffi.dlopen(_libname)
+_lib = _ffi.dlopen('@portaudio@')
_sampleformats = {
'float32': _lib.paFloat32,