From 1de49313f4c22dfc918e55566ade374752d5ac64 Mon Sep 17 00:00:00 2001 From: Christian Theune Date: Mon, 11 Dec 2023 08:45:19 +0100 Subject: [PATCH] yt-dlp: 2023.10.13 -> 2023.11.14 Changelog: https://github.com/yt-dlp/yt-dlp/releases/tag/2023.11.14 (cherry picked from commit 70c19a54d74f22d5da7eeb9599f14f9529277b83) yt-dlp: fix new dependency on requests --- pkgs/tools/misc/yt-dlp/default.nix | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/misc/yt-dlp/default.nix b/pkgs/tools/misc/yt-dlp/default.nix index 8fe478716ede..5f1005506a6e 100644 --- a/pkgs/tools/misc/yt-dlp/default.nix +++ b/pkgs/tools/misc/yt-dlp/default.nix @@ -9,6 +9,7 @@ , pycryptodomex , websockets , mutagen +, requests , secretstorage , atomicparsleySupport ? true , ffmpegSupport ? true @@ -22,11 +23,11 @@ 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 = "2023.10.13"; + version = "2023.11.14"; src = fetchPypi { inherit pname version; - hash = "sha256-4CbqHENf827vEhW8TFu4xHmTi5AFSZe6mfY6RUH+Y7Q="; + hash = "sha256-s8JTU7oQaSLYcKWlnk1qLrhXg+vRfinsQ1vD4XZN6L4="; }; propagatedBuildInputs = [ @@ -34,6 +35,7 @@ buildPythonPackage rec { certifi mutagen pycryptodomex + requests secretstorage # "optional", as in not in requirements.txt, needed for `--cookies-from-browser` websockets ]; @@ -62,6 +64,11 @@ buildPythonPackage rec { ln -s "$out/bin/yt-dlp" "$out/bin/youtube-dl" ''; + postPatch = '' + substituteInPlace requirements.txt \ + --replace "requests>=2.31.0" "requests>=2.29.0" + ''; + passthru.updateScript = [ update-python-libraries (toString ./.) ]; meta = with lib; {