blob: 6fd42cd2ec91e019429422de29b414ccd52d7320 (
plain) (
blame)
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
50
|
{
buildPythonPackage,
cffi,
fetchPypi,
lib,
libpulseaudio,
numpy,
setuptools,
testers,
}:
let
version = "0.4.3";
in
buildPythonPackage {
inherit version;
pname = "soundcard";
pyproject = true;
src = fetchPypi {
inherit version;
pname = "SoundCard";
hash = "sha256-QQg1UUuhCAmAPLmIfUJw85K1nq82WRW7lFFq8/ix0Dc=";
};
patchPhase = ''
substituteInPlace soundcard/pulseaudio.py \
--replace "'pulse'" "'${libpulseaudio}/lib/libpulse.so'"
'';
build-system = [ setuptools ];
dependencies = [
cffi
numpy
];
# doesn't work because there are not many soundcards in the
# sandbox. See VM-test
# pythonImportsCheck = [ "soundcard" ];
passthru.tests.vm-with-soundcard = testers.runNixOSTest ./test.nix;
meta = {
description = "Pure-Python Real-Time Audio Library";
homepage = "https://github.com/bastibe/SoundCard";
changelog = "https://github.com/bastibe/SoundCard/blob/${version}/README.rst#changelog";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ matthiasdotsh ];
};
}
|