tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
python313Packages.pydub: fix build, use replaceVars
Martin Weinelt
1 year ago
a0abd7f4
02eb91eb
+5
-3
1 changed file
expand all
collapse all
unified
split
pkgs
development
python-modules
pydub
default.nix
+5
-3
pkgs/development/python-modules/pydub/default.nix
reviewed
···
1
1
{
2
2
lib,
3
3
+
audioop-lts,
3
4
buildPythonPackage,
4
5
fetchFromGitHub,
5
6
fetchpatch,
···
7
8
pytestCheckHook,
8
9
pythonOlder,
9
10
setuptools,
10
10
-
substituteAll,
11
11
+
replaceVars,
11
12
}:
12
13
13
14
buildPythonPackage rec {
···
32
33
hash = "sha256-3OIzvTgGK3r4/s5y7izHvouB4uJEmjO6cgKvegtTf7A=";
33
34
})
34
35
# Fix paths to ffmpeg, ffplay and ffprobe
35
35
-
(substituteAll {
36
36
-
src = ./ffmpeg-fix-path.patch;
36
36
+
(replaceVars ./ffmpeg-fix-path.patch {
37
37
ffmpeg = lib.getExe ffmpeg-full;
38
38
ffplay = lib.getExe' ffmpeg-full "ffplay";
39
39
ffprobe = lib.getExe' ffmpeg-full "ffprobe";
···
41
41
];
42
42
43
43
nativeBuildInputs = [ setuptools ];
44
44
+
45
45
+
dependencies = [ audioop-lts ];
44
46
45
47
nativeCheckInputs = [
46
48
pytestCheckHook