mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-27 07:14:52 +00:00
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:
commit
4bfae9a71c
@ -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 = [
|
||||
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user