Unverified Commit 7ecdd527 authored by Artturin's avatar Artturin Committed by GitHub
Browse files

python3Packages.sounddevice: 0.4.7 -> 0.5.1, convert to pyproject, fix cross (#342258)

parents 74411387 590380dc
Loading
Loading
Loading
Loading
+9 −4
Original line number Diff line number Diff line
@@ -4,6 +4,7 @@
  buildPythonPackage,
  fetchPypi,
  isPy27,
  setuptools,
  cffi,
  numpy,
  portaudio,
@@ -12,21 +13,25 @@

buildPythonPackage rec {
  pname = "sounddevice";
  version = "0.4.7";
  format = "setuptools";
  version = "0.5.1";
  pyproject = true;
  disabled = isPy27;

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-abOGgY1QotUYYH1LlzRC6NUkdgx81si4vgPYyY/EvOc=";
    hash = "sha256-CcqZHa7ajOS+mskeFamoHI+B76a2laNIyRceoMFssEE=";
  };

  propagatedBuildInputs = [
  build-system = [ setuptools ];

  dependencies = [
    cffi
    numpy
    portaudio
  ];

  nativeBuildInputs = [ cffi ];

  # No tests included nor upstream available.
  doCheck = false;

+12 −9
Original line number Diff line number Diff line
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
 
 
@@ -22,6 +22,9 @@ index c7c1d62..aabcb12 100644
-    if _platform.system() == 'Darwin':
-        _libname = 'libportaudio.dylib'
-    elif _platform.system() == 'Windows':
-        if 'SD_ENABLE_ASIO' in _os.environ:
-            _libname = 'libportaudio' + _platform.architecture()[0] + '-asio.dll'
-        else:
-            _libname = 'libportaudio' + _platform.architecture()[0] + '.dll'
-    else:
-        raise