yt-dlp: 2025.12.08 -> 2026.01.29 (#485127)

This commit is contained in:
Sandro
2026-01-30 16:38:07 +00:00
committed by GitHub
2 changed files with 4 additions and 8 deletions
+2 -6
View File
@@ -21,23 +21,19 @@ 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.12.08";
version = "2026.01.29";
pyproject = true;
src = fetchFromGitHub {
owner = "yt-dlp";
repo = "yt-dlp";
tag = version;
hash = "sha256-y06MDP+CrlHGrell9hcLOGlHp/gU2OOxs7can4hbj+g=";
hash = "sha256-nw/L71aoAJSCbW1y8ir8obrFPSbVlBA0UtlrxL6YtCQ=";
};
postPatch = ''
substituteInPlace yt_dlp/version.py \
--replace-fail "UPDATE_HINT = None" 'UPDATE_HINT = "Nixpkgs/NixOS likely already contain an updated version.\n To get it run nix-channel --update or nix flake update in your config directory."'
# Until yt-dlp supports curl-cffi 0.14.x, this patch is needed:
substituteInPlace yt_dlp/networking/_curlcffi.py \
--replace-fail "if curl_cffi_version != (0, 5, 10) and not (0, 10) <= curl_cffi_version < (0, 14)" \
"if curl_cffi_version != (0, 5, 10) and not (0, 10) <= curl_cffi_version"
${lib.optionalString javascriptSupport ''
# deno is required for full YouTube support (since 2025.11.12).
# This makes yt-dlp find deno even if it is used as a python dependency, i.e. in kodiPackages.sendtokodi.
@@ -12,14 +12,14 @@
buildPythonPackage rec {
pname = "yt-dlp-ejs";
version = "0.3.2";
version = "0.4.0";
pyproject = true;
src = fetchFromGitHub {
owner = "yt-dlp";
repo = "ejs";
tag = version;
hash = "sha256-o6qf4rfj42mCyvCBb+wyJmZKg3Q+ojsqbCcBfIJnTPg=";
hash = "sha256-/qq069SD7ESg+7pK4PC1EGLLI8zqjWUse7cArN4YuXE=";
};
pnpmDeps = fetchPnpmDeps {