Skip to content

Commit ead992a

Browse files
committed
python3Packages.torchcodec: pin ffmpeg_8
1 parent 3553fca commit ead992a

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

pkgs/development/python-modules/torchcodec/default.nix

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
pkg-config,
99

1010
# buildInputs
11-
ffmpeg,
11+
# FIXME: unpin when upstream supports ffmpeg 9
12+
ffmpeg_8,
1213

1314
# build-system
1415
cmake,
@@ -45,17 +46,17 @@ buildPythonPackage.override { inherit (torch) stdenv; } (finalAttrs: {
4546
test/test_encoders.py \
4647
--replace-fail \
4748
'"ffprobe"' \
48-
'"${lib.getExe' ffmpeg "ffprobe"}"'
49+
'"${lib.getExe' ffmpeg_8 "ffprobe"}"'
4950
5051
substituteInPlace test/test_encoders.py \
5152
--replace-fail \
5253
'"ffmpeg"' \
53-
'"${lib.getExe ffmpeg}"'
54+
'"${lib.getExe ffmpeg_8}"'
5455
5556
substituteInPlace test/test_transform_ops.py \
5657
--replace-fail \
5758
'ffmpeg_cli = "ffmpeg"' \
58-
'ffmpeg_cli = "${lib.getExe ffmpeg}"'
59+
'ffmpeg_cli = "${lib.getExe ffmpeg_8}"'
5960
'';
6061

6162
nativeBuildInputs = [
@@ -69,7 +70,7 @@ buildPythonPackage.override { inherit (torch) stdenv; } (finalAttrs: {
6970
];
7071

7172
buildInputs = [
72-
ffmpeg
73+
ffmpeg_8
7374
]
7475
++ lib.optionals cudaSupport (
7576
with cudaPackages;

0 commit comments

Comments
 (0)