yt-dlp: 2024.8.6 -> 2024.9.27 (#345013)

This commit is contained in:
Sandro 2024-10-01 18:03:47 +02:00 committed by GitHub
commit 9133b9f555
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,14 +1,15 @@
{ lib
, python3Packages
, fetchPypi
, ffmpeg-headless
, rtmpdump
, atomicparsley
, atomicparsleySupport ? true
, ffmpegSupport ? true
, rtmpSupport ? true
, withAlias ? false # Provides bin/youtube-dl for backcompat
, update-python-libraries
{
lib,
python3Packages,
fetchPypi,
ffmpeg-headless,
rtmpdump,
atomicparsley,
atomicparsleySupport ? true,
ffmpegSupport ? true,
rtmpSupport ? true,
withAlias ? false, # Provides bin/youtube-dl for backcompat
update-python-libraries,
}:
python3Packages.buildPythonApplication rec {
@ -16,13 +17,13 @@ python3Packages.buildPythonApplication 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 = "2024.8.6";
version = "2024.9.27";
pyproject = true;
src = fetchPypi {
inherit version;
pname = "yt_dlp";
hash = "sha256-6FUfJryL9nuZwSNzzIftIHNDbDQ35TKQh40PS0ux9mM=";
hash = "sha256-hmBVQuF+LiOtIxRbY37DCBM3YqFaXe2sSuULeXMjcCY=";
};
build-system = with python3Packages; [
@ -36,23 +37,28 @@ python3Packages.buildPythonApplication rec {
mutagen
pycryptodomex
requests
secretstorage # "optional", as in not in requirements.txt, needed for `--cookies-from-browser`
secretstorage # "optional", as in not in requirements.txt, needed for `--cookies-from-browser`
urllib3
websockets
];
pythonRelaxDeps = [ "websockets" ];
# Ensure these utilities are available in $PATH:
# - ffmpeg: post-processing & transcoding support
# - rtmpdump: download files over RTMP
# - atomicparsley: embedding thumbnails
makeWrapperArgs =
let
packagesToBinPath = []
packagesToBinPath =
[ ]
++ lib.optional atomicparsleySupport atomicparsley
++ lib.optional ffmpegSupport ffmpeg-headless
++ lib.optional rtmpSupport rtmpdump;
in lib.optionals (packagesToBinPath != [])
[ ''--prefix PATH : "${lib.makeBinPath packagesToBinPath}"'' ];
in
lib.optionals (packagesToBinPath != [ ]) [
''--prefix PATH : "${lib.makeBinPath packagesToBinPath}"''
];
setupPyBuildFlags = [
"build_lazy_extractors"
@ -65,7 +71,10 @@ python3Packages.buildPythonApplication rec {
ln -s "$out/bin/yt-dlp" "$out/bin/youtube-dl"
'';
passthru.updateScript = [ update-python-libraries (toString ./.) ];
passthru.updateScript = [
update-python-libraries
(toString ./.)
];
meta = with lib; {
homepage = "https://github.com/yt-dlp/yt-dlp/";
@ -80,7 +89,10 @@ python3Packages.buildPythonApplication rec {
'';
changelog = "https://github.com/yt-dlp/yt-dlp/releases/tag/${version}";
license = licenses.unlicense;
maintainers = with maintainers; [ mkg20001 SuperSandro2000 ];
maintainers = with maintainers; [
mkg20001
SuperSandro2000
];
mainProgram = "yt-dlp";
};
}