Commit defcf8cb authored by Yiyu Zhou's avatar Yiyu Zhou Committed by Robert Schütz
Browse files

python3Packages.gradio: 5.38.2 -> 5.49.1

parent 75aeb2bb
Loading
Loading
Loading
Loading
+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 = ''