Loading pkgs/development/python-modules/gradio/default.nix +22 −8 Original line number Diff line number Diff line Loading @@ -16,6 +16,7 @@ , setuptools , aiofiles , altair , diffusers , fastapi , ffmpy , gradio-client Loading @@ -40,6 +41,10 @@ , typer , tomlkit # oauth , authlib , itsdangerous # check , pytestCheckHook , boto3 Loading @@ -57,7 +62,7 @@ buildPythonPackage rec { pname = "gradio"; version = "4.20.1"; version = "4.22.0"; format = "pyproject"; disabled = pythonOlder "3.7"; Loading @@ -66,7 +71,7 @@ buildPythonPackage rec { # and upstream has stopped tagging releases since 3.41.0 src = fetchPypi { inherit pname version; hash = "sha256-nvuIpOFib09FJGfkX0TDfb2LV/eDn3EybsFp5A3lzas="; hash = "sha256-nhrT509xB3+R+HF6TF5AQGnfufT6iNmzjxZgcVL7fBo="; }; # fix packaging.ParserSyntaxError, which can't handle comments Loading Loading @@ -98,6 +103,7 @@ buildPythonPackage rec { setuptools # needed for 'pkg_resources' aiofiles altair diffusers fastapi ffmpy gradio-client Loading @@ -123,6 +129,11 @@ buildPythonPackage rec { tomlkit ] ++ typer.passthru.optional-dependencies.all; passthru.optional-dependencies.oauth = [ authlib itsdangerous ]; nativeCheckInputs = [ pytestCheckHook boto3 Loading @@ -138,9 +149,11 @@ buildPythonPackage rec { transformers vega-datasets # mock npm to make `shutil.which("npm")` pass # mock calls to `shutil.which(...)` (writeShellScriptBin "npm" "false") ] ++ pydantic.passthru.optional-dependencies.email; ] ++ passthru.optional-dependencies.oauth ++ pydantic.passthru.optional-dependencies.email; # 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. Loading Loading @@ -173,6 +186,9 @@ buildPythonPackage rec { # fails without network "test_download_if_url_correct_parse" # tests if pip and other tools are installed "test_get_executable_path" ]; disabledTestPaths = [ # 100% touches network Loading @@ -196,19 +212,17 @@ buildPythonPackage rec { # Cyclic dependencies are fun! # This is gradio without gradio-client and gradio-pdf passthru = { sans-reverse-dependencies = (gradio.override (old: { passthru.sans-reverse-dependencies = (gradio.override (old: { gradio-client = null; gradio-pdf = null; })).overridePythonAttrs (old: { pname = old.pname + "-sans-client"; pname = old.pname + "-sans-reverse-dependencies"; pythonRemoveDeps = (old.pythonRemoveDeps or []) ++ [ "gradio-client" ]; doInstallCheck = false; doCheck = false; pythonImportsCheck = null; dontCheckRuntimeDeps = true; }); }; meta = with lib; { homepage = "https://www.gradio.app/"; Loading Loading
pkgs/development/python-modules/gradio/default.nix +22 −8 Original line number Diff line number Diff line Loading @@ -16,6 +16,7 @@ , setuptools , aiofiles , altair , diffusers , fastapi , ffmpy , gradio-client Loading @@ -40,6 +41,10 @@ , typer , tomlkit # oauth , authlib , itsdangerous # check , pytestCheckHook , boto3 Loading @@ -57,7 +62,7 @@ buildPythonPackage rec { pname = "gradio"; version = "4.20.1"; version = "4.22.0"; format = "pyproject"; disabled = pythonOlder "3.7"; Loading @@ -66,7 +71,7 @@ buildPythonPackage rec { # and upstream has stopped tagging releases since 3.41.0 src = fetchPypi { inherit pname version; hash = "sha256-nvuIpOFib09FJGfkX0TDfb2LV/eDn3EybsFp5A3lzas="; hash = "sha256-nhrT509xB3+R+HF6TF5AQGnfufT6iNmzjxZgcVL7fBo="; }; # fix packaging.ParserSyntaxError, which can't handle comments Loading Loading @@ -98,6 +103,7 @@ buildPythonPackage rec { setuptools # needed for 'pkg_resources' aiofiles altair diffusers fastapi ffmpy gradio-client Loading @@ -123,6 +129,11 @@ buildPythonPackage rec { tomlkit ] ++ typer.passthru.optional-dependencies.all; passthru.optional-dependencies.oauth = [ authlib itsdangerous ]; nativeCheckInputs = [ pytestCheckHook boto3 Loading @@ -138,9 +149,11 @@ buildPythonPackage rec { transformers vega-datasets # mock npm to make `shutil.which("npm")` pass # mock calls to `shutil.which(...)` (writeShellScriptBin "npm" "false") ] ++ pydantic.passthru.optional-dependencies.email; ] ++ passthru.optional-dependencies.oauth ++ pydantic.passthru.optional-dependencies.email; # 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. Loading Loading @@ -173,6 +186,9 @@ buildPythonPackage rec { # fails without network "test_download_if_url_correct_parse" # tests if pip and other tools are installed "test_get_executable_path" ]; disabledTestPaths = [ # 100% touches network Loading @@ -196,19 +212,17 @@ buildPythonPackage rec { # Cyclic dependencies are fun! # This is gradio without gradio-client and gradio-pdf passthru = { sans-reverse-dependencies = (gradio.override (old: { passthru.sans-reverse-dependencies = (gradio.override (old: { gradio-client = null; gradio-pdf = null; })).overridePythonAttrs (old: { pname = old.pname + "-sans-client"; pname = old.pname + "-sans-reverse-dependencies"; pythonRemoveDeps = (old.pythonRemoveDeps or []) ++ [ "gradio-client" ]; doInstallCheck = false; doCheck = false; pythonImportsCheck = null; dontCheckRuntimeDeps = true; }); }; meta = with lib; { homepage = "https://www.gradio.app/"; Loading