14 buildPythonPackage rec {
15 pname = "sounddevice";
21 inherit pname version;
22 hash = "sha256-CcqZHa7ajOS+mskeFamoHI+B76a2laNIyRceoMFssEE=";
25 build-system = [ setuptools ];
33 nativeBuildInputs = [ cffi ];
35 # No tests included nor upstream available.
38 pythonImportsCheck = [ "sounddevice" ];
42 src = ./fix-portaudio-library-path.patch;
43 portaudio = "${portaudio}/lib/libportaudio${stdenv.hostPlatform.extensions.sharedLibrary}";
48 description = "Play and Record Sound with Python";
49 homepage = "http://python-sounddevice.rtfd.org/";
50 license = with lib.licenses; [ mit ];