Merge pull request #310295 from GaetanLepage/gradio-client

python311Packages.gradio-client: 0.14.0 -> 0.16.1, python311Packages.gradio: 4.27.0 -> 4.29.0

authored by Pol Dellaiera and committed by GitHub acbbc1cd ac0133cf

+30 -10
+23 -3
pkgs/development/python-modules/diffusers/default.nix
··· 1 1 { lib 2 2 , stdenv 3 3 , buildPythonPackage 4 + , pythonOlder 4 5 , fetchFromGitHub 5 - , pythonOlder 6 + , fetchpatch 6 7 , writeText 7 8 , setuptools 8 9 , wheel ··· 35 36 , sentencepiece 36 37 , torchsde 37 38 , transformers 39 + , pythonAtLeast 38 40 }: 39 41 40 42 buildPythonPackage rec { ··· 51 53 hash = "sha256-aRnbU3jN40xaCsoMFyRt1XB+hyIYMJP2b/T1yZho90c="; 52 54 }; 53 55 54 - nativeBuildInputs = [ 56 + patches = [ 57 + # fix python3.12 build 58 + (fetchpatch { # https://github.com/huggingface/diffusers/pull/7455 59 + name = "001-remove-distutils.patch"; 60 + url = "https://github.com/huggingface/diffusers/compare/363699044e365ef977a7646b500402fa585e1b6b...3c67864c5acb30413911730b1ed4a9ad47c0a15c.patch"; 61 + hash = "sha256-Qyvyp1GyTVXN+A+lA1r2hf887ubTtaUknbKd4r46NZQ="; 62 + }) 63 + (fetchpatch { # https://github.com/huggingface/diffusers/pull/7461 64 + name = "002-fix-removed-distutils.patch"; 65 + url = "https://github.com/huggingface/diffusers/commit/efbbbc38e436a1abb1df41a6eccfd6f9f0333f97.patch"; 66 + hash = "sha256-scdtpX1RYFFEDHcaMb+gDZSsPafkvnIO/wQlpzrQhLA="; 67 + }) 68 + ]; 69 + 70 + build-system = [ 55 71 setuptools 56 72 wheel 57 73 ]; 58 74 59 - propagatedBuildInputs = [ 75 + dependencies = [ 60 76 filelock 61 77 huggingface-hub 62 78 importlib-metadata ··· 143 159 "test_model_cpu_offload_forward_pass" 144 160 # tries to run ruff which we have intentionally removed from nativeCheckInputs 145 161 "test_is_copy_consistent" 162 + ] ++ lib.optionals (pythonAtLeast "3.12") [ 163 + 164 + # RuntimeError: Dynamo is not supported on Python 3.12+ 165 + "test_from_save_pretrained_dynamo" 146 166 ]; 147 167 148 168 meta = with lib; {
+5 -5
pkgs/development/python-modules/gradio/client.nix
··· 28 28 29 29 buildPythonPackage rec { 30 30 pname = "gradio-client"; 31 - version = "0.14.0"; 32 - format = "pyproject"; 31 + version = "0.16.1"; 32 + pyproject = true; 33 33 34 34 disabled = pythonOlder "3.8"; 35 35 ··· 37 37 src = fetchFromGitHub { 38 38 owner = "gradio-app"; 39 39 repo = "gradio"; 40 - rev = "refs/tags/@gradio/client@${version}"; 40 + rev = "refs/tags/gradio_client@${version}"; 41 41 sparseCheckout = [ "client/python" ]; 42 - hash = "sha256-7oC/Z3YUiOFZdv/60q7PkfluV77broRkHgWiY9Vim9Y="; 42 + hash = "sha256-SVUm9LrjYG0r3U1yOd3rctxVMYlnAOW+Opqy9c3osnw="; 43 43 }; 44 44 prePatch = '' 45 45 cd client/python ··· 52 52 "websockets" 53 53 ]; 54 54 55 - nativeBuildInputs = [ 55 + build-system = [ 56 56 hatchling 57 57 hatch-requirements-txt 58 58 hatch-fancy-pypi-readme
+2 -2
pkgs/development/python-modules/gradio/default.nix
··· 62 62 63 63 buildPythonPackage rec { 64 64 pname = "gradio"; 65 - version = "4.27.0"; 65 + version = "4.29.0"; 66 66 format = "pyproject"; 67 67 68 68 disabled = pythonOlder "3.7"; ··· 71 71 # and upstream has stopped tagging releases since 3.41.0 72 72 src = fetchPypi { 73 73 inherit pname version; 74 - hash = "sha256-617zutFhS8NGO4+fcALH8aKbk+reGC65DNWKVVKiWEw="; 74 + hash = "sha256-17KT0b9kBO+xLgIgxfpwjETDoRM4aTJPlJv7HjkJXjo="; 75 75 }; 76 76 77 77 # fix packaging.ParserSyntaxError, which can't handle comments