nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 21.05 39 lines 813 B view raw
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.1"; 14 disabled = isPy27; 15 16 src = fetchPypi { 17 inherit pname version; 18 sha256 = "f21978921186c0c7183af032fab77b735d824f3e926d76adb3fd0912e289ce0b"; 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}