2020-07-20 17:06:16 +01:00
|
|
|
{ fetchFromGitHub
|
|
|
|
, buildPythonPackage
|
|
|
|
, isPy27
|
|
|
|
, cython
|
|
|
|
, portaudio
|
|
|
|
, cffi
|
|
|
|
, pa-ringbuffer
|
|
|
|
, sounddevice
|
|
|
|
, lib
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "rtmixer";
|
|
|
|
version = "0.1.1";
|
|
|
|
disabled = isPy27;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "spatialaudio";
|
|
|
|
repo = "python-rtmixer";
|
2020-11-01 22:39:49 +00:00
|
|
|
rev = version;
|
2020-07-20 17:06:16 +01:00
|
|
|
sha256 = "1bvgzzxiypvvb3qacbcry6761x9sk3dnx7jga7pli63f69vakg4y";
|
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ portaudio ];
|
|
|
|
nativeBuildInputs = [ cython ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
cffi
|
|
|
|
pa-ringbuffer
|
|
|
|
sounddevice
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Reliable low-latency audio playback and recording with Python, using PortAudio via the sounddevice module";
|
|
|
|
homepage = "https://python-rtmixer.readthedocs.io";
|
|
|
|
maintainers = with lib.maintainers; [ laikq ];
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
};
|
|
|
|
}
|