diff options
Diffstat (limited to 'nixpkgs/pkgs/tools/misc/yt-dlp')
-rw-r--r-- | nixpkgs/pkgs/tools/misc/yt-dlp/default.nix | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/nixpkgs/pkgs/tools/misc/yt-dlp/default.nix b/nixpkgs/pkgs/tools/misc/yt-dlp/default.nix index 89ca84395d5f..2da719887583 100644 --- a/nixpkgs/pkgs/tools/misc/yt-dlp/default.nix +++ b/nixpkgs/pkgs/tools/misc/yt-dlp/default.nix @@ -2,16 +2,16 @@ , buildPythonPackage , fetchPypi , brotli +, certifi , ffmpeg , rtmpdump -, phantomjs2 , atomicparsley , pycryptodomex , websockets , mutagen +, atomicparsleySupport ? true , ffmpegSupport ? true , rtmpSupport ? true -, phantomjsSupport ? false , withAlias ? false # Provides bin/youtube-dl for backcompat }: @@ -20,15 +20,14 @@ buildPythonPackage rec { # The websites yt-dlp deals with are a very moving target. That means that # downloads break constantly. Because of that, updates should always be backported # to the latest stable release. - version = "2022.3.8.2"; + version = "2022.8.14"; src = fetchPypi { - inherit pname; - version = builtins.replaceStrings [ ".0" ] [ "." ] version; - sha256 = "sha256-aFRleMGObOh0ULU3adXVt/WiPlIJeEl222x8y/eVSyE="; + inherit pname version; + sha256 = "sha256-mizrdqTMSKqAEn7/ioU9nIt+/ovhIcISPcv9PQa8lF8="; }; - propagatedBuildInputs = [ brotli mutagen pycryptodomex websockets ]; + propagatedBuildInputs = [ brotli certifi mutagen pycryptodomex websockets ]; # Ensure these utilities are available in $PATH: # - ffmpeg: post-processing & transcoding support @@ -36,11 +35,11 @@ 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 + ++ lib.optional rtmpSupport rtmpdump; + in lib.optionalString (packagesToBinPath != []) [ ''--prefix PATH : "${lib.makeBinPath packagesToBinPath}"'' ]; setupPyBuildFlags = [ @@ -57,7 +56,6 @@ buildPythonPackage rec { meta = with lib; { homepage = "https://github.com/yt-dlp/yt-dlp/"; description = "Command-line tool to download videos from YouTube.com and other sites (youtube-dl fork)"; - changelog = "https://github.com/yt-dlp/yt-dlp/raw/${version}/Changelog.md"; longDescription = '' yt-dlp is a youtube-dl fork based on the now inactive youtube-dlc. @@ -67,6 +65,6 @@ buildPythonPackage rec { you can modify it, redistribute it or use it however you like. ''; license = licenses.unlicense; - maintainers = with maintainers; [ mkg20001 SuperSandro2000 ]; + maintainers = with maintainers; [ mkg20001 SuperSandro2000 marsam ]; }; } |