at master 920 B view raw
1{ 2 fetchFromGitHub, 3 buildPythonPackage, 4 isPy27, 5 setuptools, 6 cython, 7 portaudio, 8 cffi, 9 pa-ringbuffer, 10 sounddevice, 11 lib, 12}: 13 14buildPythonPackage rec { 15 pname = "rtmixer"; 16 version = "0.1.7"; 17 pyproject = true; 18 disabled = isPy27; 19 20 src = fetchFromGitHub { 21 owner = "spatialaudio"; 22 repo = "python-rtmixer"; 23 tag = version; 24 hash = "sha256-K5w6XWnDdA5HrzDOMhqinlxrg/09AF6c5CWZEsfVHb4="; 25 fetchSubmodules = true; 26 }; 27 28 build-system = [ setuptools ]; 29 30 buildInputs = [ portaudio ]; 31 32 nativeBuildInputs = [ 33 cython 34 cffi 35 ]; 36 37 dependencies = [ 38 cffi 39 pa-ringbuffer 40 sounddevice 41 ]; 42 43 meta = { 44 description = "Reliable low-latency audio playback and recording with Python, using PortAudio via the sounddevice module"; 45 homepage = "https://python-rtmixer.readthedocs.io"; 46 maintainers = with lib.maintainers; [ laikq ]; 47 license = lib.licenses.mit; 48 }; 49}