Merge pull request #257947 from mweinelt/videoprops-purge-binaries

python310Packages.get-video-properties: remove vulnerable binaries
This commit is contained in:
Martin Weinelt 2023-09-30 00:11:52 +02:00 committed by GitHub
commit dbc3a520df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,7 +1,7 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, ffmpeg
, ffmpeg-headless
}:
buildPythonPackage rec {
@ -20,7 +20,10 @@ buildPythonPackage rec {
postPatch = ''
substituteInPlace videoprops/__init__.py \
--replace "which('ffprobe')" "'${ffmpeg}/bin/ffprobe'"
--replace "which('ffprobe')" "'${ffmpeg-headless}/bin/ffprobe'"
# unused and vulnerable to various CVEs
rm -r videoprops/binary_dependencies
'';
pythonImportsCheck = [ "videoprops" ];