-
Notifications
You must be signed in to change notification settings - Fork 0
/
default.nix
62 lines (58 loc) · 1.27 KB
/
default.nix
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
51
52
53
54
55
56
57
58
59
60
61
62
with import <nixpkgs> {};
with pkgs.python310Packages;
let
pyo = buildPythonPackage rec {
name = "pyo";
src = fetchFromGitHub {
owner = "belangeo";
repo = "pyo";
rev = "360c429138e170e291a89da605a8dc20f837466f";
sha256 = "sha256-CRHl+lAdiDXrXVcr9W14XE9lTJ6T7MfE8WeTMm6FpzU=";
};
doCheck = false;
setupPyGlobalFlags = [
"--use-double"
"--use-jack"
];
propagatedBuildInputs = with pkgs; [
# C library dependencies for pyo
portaudio
libsndfile
portmidi
liblo
alsa-lib
alsa-utils
libjack2
flac
libogg
libvorbis
# Other pyo dependencies
python310Packages.wxPython_4_1
];
};
in
buildPythonPackage rec {
name = "audiowalkman";
src = fetchFromGitHub {
owner = "audiowalkman";
repo = "walkman";
rev = "db6ac87453b5136b9fa799bdcad06d738a68a4aa";
sha256 = "sha256-k9PfLmIr8tXCugsyPzFeCGZ0bDIpy0D+nvPiARP9h7Q=";
};
propagatedBuildInputs = with pkgs.python310Packages; [
pyo
pysimplegui
click
tomli
jinja2
];
checkInputs = [
python310Packages.pytest
];
doCheck = true;
checkPhase = ''
runHook preCheck
pytest
runHook postCheck
'';
}