2020-09-25 04:45:31 +00:00
|
|
|
{ fetchFromGitHub
|
|
|
|
, buildPythonPackage
|
|
|
|
, isPy27
|
|
|
|
, cython
|
|
|
|
, portaudio
|
|
|
|
, cffi
|
|
|
|
, pa-ringbuffer
|
|
|
|
, sounddevice
|
|
|
|
, lib
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "rtmixer";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "0.1.4";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2020-09-25 04:45:31 +00:00
|
|
|
disabled = isPy27;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "spatialaudio";
|
|
|
|
repo = "python-rtmixer";
|
2023-11-16 04:20:00 +00:00
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
sha256 = "sha256-S8aVfxoG0o5GarDX5ZIDQ3GKOT32NtttQJ449FI9Fy0=";
|
2020-09-25 04:45:31 +00:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|