Commit 38ac3408 authored by Lin Xianyi's avatar Lin Xianyi
Browse files
parent 33319c30
Loading
Loading
Loading
Loading
+2 −10
Original line number Diff line number Diff line
@@ -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"
  '';