From 33b73deeb256afa286a8447fcc7fc948ff78f63e Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Wed, 31 Jul 2024 23:04:57 +0200 Subject: [PATCH 1/2] python312Packages.gradio: 4.36.1 -> 4.40.0 diff: https://github.com/gradio-app/gradio/compare/gradio@4.36.1..gradio@4.40.0 --- pkgs/development/python-modules/gradio/default.nix | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/gradio/default.nix b/pkgs/development/python-modules/gradio/default.nix index b59ba637d713..a25d8baa10d3 100644 --- a/pkgs/development/python-modules/gradio/default.nix +++ b/pkgs/development/python-modules/gradio/default.nix @@ -15,7 +15,7 @@ # runtime setuptools, aiofiles, - altair, + anyio, diffusers, fastapi, ffmpy, @@ -47,6 +47,7 @@ # check pytestCheckHook, + altair, boto3, gradio-pdf, ffmpeg, @@ -62,7 +63,7 @@ buildPythonPackage rec { pname = "gradio"; - version = "4.36.1"; + version = "4.40.0"; format = "pyproject"; disabled = pythonOlder "3.7"; @@ -70,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 @@ -98,7 +99,7 @@ buildPythonPackage rec { dependencies = [ setuptools # needed for 'pkg_resources' aiofiles - altair + anyio diffusers fastapi ffmpy @@ -132,6 +133,7 @@ buildPythonPackage rec { nativeCheckInputs = [ pytestCheckHook + altair boto3 gradio-pdf ffmpeg @@ -183,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 [ From e82f7f703e72b3c18fde5e5a6a092aa0f6e364d1 Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Thu, 1 Aug 2024 03:51:57 +0200 Subject: [PATCH 2/2] python312Packages.gradio-client: 1.0.1 -> 1.2.0 diff: https://github.com/gradio-app/gradio/compare/gradio_client@1.0.1..gradio_client@1.2.0 --- pkgs/development/python-modules/gradio/client.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/gradio/client.nix b/pkgs/development/python-modules/gradio/client.nix index 1e87a7ad652a..ed2d52c30c39 100644 --- a/pkgs/development/python-modules/gradio/client.nix +++ b/pkgs/development/python-modules/gradio/client.nix @@ -27,7 +27,7 @@ buildPythonPackage rec { pname = "gradio-client"; - version = "1.0.1"; + version = "1.2.0"; pyproject = true; disabled = pythonOlder "3.8"; @@ -39,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