Unverified Commit c22621d0 authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

curl-cffi: 0.7.2 (broken) -> 0.7.4 (#370324)

parents 676b69c0 c32729c0
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -75,6 +75,14 @@ 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"
  '';
+2 −2
Original line number Diff line number Diff line
@@ -12,14 +12,14 @@

buildPythonPackage rec {
  pname = "curl-cffi";
  version = "0.7.2";
  version = "0.7.4";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "lexiforest";
    repo = "curl_cffi";
    rev = "refs/tags/v${version}";
    hash = "sha256-s8P/7erdAeGZuykUrgpCcm0a4ym3Y8F6kKFXoDXsOdQ=";
    hash = "sha256-Q1VppzQ1Go+ia1D1BemTf40o9wV0miWyoGy/tY+95qE==";
  };

  patches = [ ./use-system-libs.patch ];