python3Packages.imageio-ffmpeg: pin ffmpeg to 4.x

This commit is contained in:
Jonathan Ringer 2022-02-04 15:10:46 -08:00
parent 6e39d6a2e7
commit 4a56d85b82
No known key found for this signature in database
GPG key ID: 5C841D3CFDFEC4E0

View file

@ -3,7 +3,7 @@
, isPy3k
, fetchPypi
, substituteAll
, ffmpeg
, ffmpeg_4
, python
}:
@ -21,7 +21,7 @@ buildPythonPackage rec {
patches = [
(substituteAll {
src = ./ffmpeg-path.patch;
ffmpeg = "${ffmpeg}/bin/ffmpeg";
ffmpeg = "${ffmpeg_4}/bin/ffmpeg";
})
];
@ -30,7 +30,7 @@ buildPythonPackage rec {
${python.interpreter} << EOF
from imageio_ffmpeg import get_ffmpeg_version
assert get_ffmpeg_version() == '${ffmpeg.version}'
assert get_ffmpeg_version() == '${ffmpeg_4.version}'
EOF
runHook postCheck