Unverified Commit dbc3a520 authored by Martin Weinelt's avatar Martin Weinelt Committed by GitHub
Browse files

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

python310Packages.get-video-properties: remove vulnerable binaries
parents 336d12bc 746a9744
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
{ 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" ];