summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/rtmixer/default.nix
blob: d2a83c7260ec3fd1c9b02619475889fb281f4416 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
{
  fetchFromGitHub,
  buildPythonPackage,
  isPy27,
  setuptools,
  cython,
  portaudio,
  cffi,
  pa-ringbuffer,
  sounddevice,
  lib,
}:

buildPythonPackage rec {
  pname = "rtmixer";
  version = "0.1.7";
  pyproject = true;
  disabled = isPy27;

  src = fetchFromGitHub {
    owner = "spatialaudio";
    repo = "python-rtmixer";
    tag = version;
    hash = "sha256-K5w6XWnDdA5HrzDOMhqinlxrg/09AF6c5CWZEsfVHb4=";
    fetchSubmodules = true;
  };

  build-system = [ setuptools ];

  buildInputs = [ portaudio ];

  nativeBuildInputs = [
    cython
    cffi
  ];

  dependencies = [
    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;
  };
}