diff options
Diffstat (limited to 'pkgs/development/python-modules/gradio')
-rw-r--r-- | pkgs/development/python-modules/gradio/client.nix | 7 | ||||
-rw-r--r-- | pkgs/development/python-modules/gradio/default.nix | 17 |
2 files changed, 12 insertions, 12 deletions
diff --git a/pkgs/development/python-modules/gradio/client.nix b/pkgs/development/python-modules/gradio/client.nix index 768e5e3f99565..ed2d52c30c391 100644 --- a/pkgs/development/python-modules/gradio/client.nix +++ b/pkgs/development/python-modules/gradio/client.nix @@ -4,7 +4,6 @@ fetchFromGitHub, nix-update-script, pythonOlder, - pythonRelaxDepsHook, # pyproject hatchling, hatch-requirements-txt, @@ -15,7 +14,6 @@ httpx, huggingface-hub, packaging, - requests, typing-extensions, websockets, # checkInputs @@ -29,7 +27,7 @@ buildPythonPackage rec { pname = "gradio-client"; - version = "1.0.1"; + version = "1.2.0"; pyproject = true; disabled = pythonOlder "3.8"; @@ -41,7 +39,7 @@ buildPythonPackage rec { # not to be confused with @gradio/client@${version} rev = "refs/tags/gradio_client@${version}"; sparseCheckout = [ "client/python" ]; - hash = "sha256-nbOWg2ZPcXTft7e4tR5p5xecVU62en0hEdXqAgLDZF4="; + hash = "sha256-l5WHNerSYNXrFGOpAqxxh0JLiFpatxq6a62q83tEavo="; }; prePatch = '' cd client/python @@ -58,7 +56,6 @@ buildPythonPackage rec { hatchling hatch-requirements-txt hatch-fancy-pypi-readme - pythonRelaxDepsHook ]; dependencies = [ diff --git a/pkgs/development/python-modules/gradio/default.nix b/pkgs/development/python-modules/gradio/default.nix index 4d028da04e493..a25d8baa10d35 100644 --- a/pkgs/development/python-modules/gradio/default.nix +++ b/pkgs/development/python-modules/gradio/default.nix @@ -4,7 +4,6 @@ buildPythonPackage, fetchPypi, pythonOlder, - pythonRelaxDepsHook, writeShellScriptBin, gradio, @@ -16,7 +15,7 @@ # runtime setuptools, aiofiles, - altair, + anyio, diffusers, fastapi, ffmpy, @@ -48,6 +47,7 @@ # check pytestCheckHook, + altair, boto3, gradio-pdf, ffmpeg, @@ -63,7 +63,7 @@ buildPythonPackage rec { pname = "gradio"; - version = "4.36.1"; + version = "4.40.0"; format = "pyproject"; disabled = pythonOlder "3.7"; @@ -71,7 +71,7 @@ buildPythonPackage rec { # We use the Pypi release, since it provides prebuilt webui assets src = fetchPypi { inherit pname version; - hash = "sha256-crLSEVbTRnEjuubzD0Y/AC7wbicnZidDCPXtPKw3Vjs="; + hash = "sha256-ChV5E6RfFcOwW6uFqU4/phfHfn27yS8+MKjMVytnlgU="; }; # fix packaging.ParserSyntaxError, which can't handle comments @@ -91,7 +91,6 @@ buildPythonPackage rec { ]; nativeBuildInputs = [ - pythonRelaxDepsHook hatchling hatch-requirements-txt hatch-fancy-pypi-readme @@ -100,7 +99,7 @@ buildPythonPackage rec { dependencies = [ setuptools # needed for 'pkg_resources' aiofiles - altair + anyio diffusers fastapi ffmpy @@ -125,7 +124,7 @@ buildPythonPackage rec { uvicorn typer tomlkit - ] ++ typer.passthru.optional-dependencies.all; + ]; passthru.optional-dependencies.oauth = [ authlib @@ -134,6 +133,7 @@ buildPythonPackage rec { nativeCheckInputs = [ pytestCheckHook + altair boto3 gradio-pdf ffmpeg @@ -185,6 +185,9 @@ buildPythonPackage rec { # fails without network "test_download_if_url_correct_parse" + # flaky: OSError: Cannot find empty port in range: 7860-7959 + "test_docs_url" + # tests if pip and other tools are installed "test_get_executable_path" ] ++ lib.optionals stdenv.isDarwin [ |