Merge pull request #170685 from qowoz/yt-dlp-deps

yt-dlp: make atomicparsley optional, yt-dlp-light: disable atomicparsley and rtmp
This commit is contained in:
Sandro 2022-04-28 02:49:22 +02:00 committed by GitHub
commit 4bfae9a71c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

@ -10,6 +10,7 @@
, pycryptodomex
, websockets
, mutagen
, atomicparsleySupport ? true
, ffmpegSupport ? true
, rtmpSupport ? true
, phantomjsSupport ? false
@ -37,11 +38,12 @@ buildPythonPackage rec {
# - atomicparsley: embedding thumbnails
makeWrapperArgs =
let
packagesToBinPath = [ atomicparsley ]
packagesToBinPath = []
++ lib.optional atomicparsleySupport atomicparsley
++ lib.optional ffmpegSupport ffmpeg
++ lib.optional rtmpSupport rtmpdump
++ lib.optional phantomjsSupport phantomjs2;
in
in lib.optionalString (packagesToBinPath != [])
[ ''--prefix PATH : "${lib.makeBinPath packagesToBinPath}"'' ];
setupPyBuildFlags = [

View File

@ -11103,8 +11103,10 @@ in {
yt-dlp = callPackage ../tools/misc/yt-dlp { };
yt-dlp-light = callPackage ../tools/misc/yt-dlp {
atomicparsleySupport = false;
ffmpegSupport = false;
phantomjsSupport = false;
rtmpSupport = false;
};
youtube-search = callPackage ../development/python-modules/youtube-search { };