Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchPypi 4, isPy27 5, cffi 6, numpy 7, portaudio 8, substituteAll 9}: 10 11buildPythonPackage rec { 12 pname = "sounddevice"; 13 version = "0.4.0"; 14 disabled = isPy27; 15 16 src = fetchPypi { 17 inherit pname version; 18 sha256 = "007cfef077c447eebbdbca3d510ca4365c211c2c6c4d2912d6eec43c8cbcbc02"; 19 }; 20 21 propagatedBuildInputs = [ cffi numpy portaudio ]; 22 23 # No tests included nor upstream available. 24 doCheck = false; 25 26 patches = [ 27 (substituteAll { 28 src = ./fix-portaudio-library-path.patch; 29 portaudio = "${portaudio}/lib/libportaudio.so.2"; 30 }) 31 ]; 32 33 meta = { 34 description = "Play and Record Sound with Python"; 35 homepage = "http://python-sounddevice.rtfd.org/"; 36 license = with lib.licenses; [ mit ]; 37 maintainers = with lib.maintainers; [ fridh ]; 38 }; 39}