Merge pull request #331420 from pbsds/bump-gradio-1722459803

python312Packages.gradio: 4.36.1 -> 4.40.0
This commit is contained in:
Peder Bergebakken Sundt
2024-08-02 23:25:16 +02:00
committed by GitHub
2 changed files with 11 additions and 6 deletions
@@ -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
@@ -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 [