Unverified Commit c918984d authored by Gaétan Lepage's avatar Gaétan Lepage Committed by GitHub
Browse files

python3Packages.gradio: 5.38.2 -> 5.49.1 (#462866)

parents f4443d91 defcf8cb
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -31,7 +31,7 @@

buildPythonPackage rec {
  pname = "gradio-client";
  version = "1.11.0";
  version = "1.12.1";
  pyproject = true;

  # no tests on pypi
@@ -41,7 +41,7 @@ buildPythonPackage rec {
    # not to be confused with @gradio/client@${version}
    tag = "gradio_client@${version}";
    sparseCheckout = [ "client/python" ];
    hash = "sha256-dj8hJPXUBbFG9awP3o0vgyPt+gcCgzKKEQTEHkrEimA=";
    hash = "sha256-Q0sEn7trWVVWh2XNZam10axuQBiPZvq//qTIR5WJn+4=";
  };

  sourceRoot = "${src.name}/client/python";
+5 −8
Original line number Diff line number Diff line
@@ -75,25 +75,27 @@

buildPythonPackage rec {
  pname = "gradio";
  version = "5.38.2";
  version = "5.49.1";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "gradio-app";
    repo = "gradio";
    tag = "gradio@${version}";
    hash = "sha256-zKAH/tbF1S+LIi1i+BuKBUWDSI0+Ii5FhsZ3sQaFtto=";
    hash = "sha256-tfjyu2yl+2ndPZWrsSrVf8qv2eqpU5ZJHVqM9saJVt4=";
  };

  pnpmDeps = pnpm_9.fetchDeps {
    inherit pname version src;
    fetcherVersion = 1;
    hash = "sha256-sIEsolHffX3cpAJU79w+ndRY4vvmWLxp2efTryv+j38=";
    hash = "sha256-XnCx34nbX+essVfXJlxvYB9/lnolAkF81Jp6dAOqr8E=";
  };

  pythonRelaxDeps = [
    "aiofiles"
    "gradio-client"
    "markupsafe"
    "pillow"
  ];

  pythonRemoveDeps = [
@@ -184,11 +186,6 @@ buildPythonPackage rec {
    pnpm package
  '';

  postBuild = ''
    # SyntaxError: 'await' outside function
    zip -d dist/gradio-*.whl gradio/_frontend_code/lite/examples/transformers_basic/run.py
  '';

  # Add a pytest hook skipping tests that access network, marking them as "Expected fail" (xfail).
  # We additionally xfail FileNotFoundError, since the gradio devs often fail to upload test assets to pypi.
  preCheck = ''