From 38ac3408a80fcc8a87760a2f781d9057bebbe240 Mon Sep 17 00:00:00 2001 From: Lin Xianyi Date: Tue, 25 Mar 2025 11:06:18 +0800 Subject: [PATCH] yt-dlp: 2025.3.21 -> 2025.3.25 Diff: https://github.com/yt-dlp/yt-dlp/compare/refs/tags/2025.03.21...2025.03.25 Changelog: https://github.com/yt-dlp/yt-dlp/releases/tag/2025.03.25 --- pkgs/by-name/yt/yt-dlp/package.nix | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/pkgs/by-name/yt/yt-dlp/package.nix b/pkgs/by-name/yt/yt-dlp/package.nix index 3ed3ef032c9f..05c0bc68b689 100644 --- a/pkgs/by-name/yt/yt-dlp/package.nix +++ b/pkgs/by-name/yt/yt-dlp/package.nix @@ -17,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 = "2025.3.21"; + version = "2025.3.25"; pyproject = true; src = fetchPypi { inherit version; pname = "yt_dlp"; - hash = "sha256-W89HsolyVOo4FpNajd5H0kO/9VZ4LM7WsWorhea2gro="; + hash = "sha256-x/QlFvnfMdrvU8yiWQI5QBzzHbfE6spnZnz9gvLgric="; }; build-system = with python3Packages; [ @@ -75,14 +75,6 @@ python3Packages.buildPythonApplication rec { # Requires network doCheck = false; - # curl-cffi 0.7.2 and 0.7.3 are broken, but 0.7.4 is fixed - # https://github.com/lexiforest/curl_cffi/issues/394 - postPatch = '' - substituteInPlace yt_dlp/networking/_curlcffi.py \ - --replace-fail "(0, 7, 0) <= curl_cffi_version < (0, 7, 2)" \ - "((0, 7, 0) <= curl_cffi_version < (0, 7, 2)) or curl_cffi_version >= (0, 7, 4)" - ''; - postInstall = lib.optionalString withAlias '' ln -s "$out/bin/yt-dlp" "$out/bin/youtube-dl" '';