mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-26 02:05:02 +00:00
[release-26.05] python3Packages.gradio-client: 2.5.0 -> 2.6.0 (#548574)
This commit is contained in:
@@ -31,7 +31,7 @@
|
||||
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "gradio-client";
|
||||
version = "2.5.0";
|
||||
version = "2.6.0";
|
||||
pyproject = true;
|
||||
|
||||
# no tests on pypi
|
||||
@@ -134,6 +134,7 @@ buildPythonPackage (finalAttrs: {
|
||||
disabledTests = [ ];
|
||||
pythonImportsCheck = null;
|
||||
dontCheckRuntimeDeps = true;
|
||||
dontCheckPythonMetadata = true; # broken due to changed pname
|
||||
});
|
||||
|
||||
inherit (gradio) updateScript;
|
||||
|
||||
@@ -49,6 +49,7 @@
|
||||
typer,
|
||||
typing-extensions,
|
||||
uvicorn,
|
||||
urllib3,
|
||||
|
||||
# oauth
|
||||
authlib,
|
||||
@@ -81,7 +82,7 @@ let
|
||||
in
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "gradio";
|
||||
version = "6.20.0"; # please always backport gradio changes
|
||||
version = "6.22.0"; # please always backport gradio changes
|
||||
pyproject = true;
|
||||
__structuredAttrs = true;
|
||||
|
||||
@@ -89,7 +90,7 @@ buildPythonPackage (finalAttrs: {
|
||||
owner = "gradio-app";
|
||||
repo = "gradio";
|
||||
tag = "gradio@${finalAttrs.version}";
|
||||
hash = "sha256-q5OoMguG/f0A3c6X+zotafc3kRRuebxMBPUIlrlcNFI=";
|
||||
hash = "sha256-9FcGnZ/yktKM8sTGpgTv3QLIe2IoGbSw10rLWgj1zSU=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
@@ -106,7 +107,7 @@ buildPythonPackage (finalAttrs: {
|
||||
inherit (finalAttrs) version src;
|
||||
inherit pnpm;
|
||||
fetcherVersion = 4;
|
||||
hash = "sha256-xCxr/jnp9emeB6THGt4cumvApw6fSZQwG2NGOcvR0yQ=";
|
||||
hash = "sha256-TX4sLAfka/j002OsUKqxqi5B6Fb+DXSGdeL+w6V9XuM=";
|
||||
};
|
||||
|
||||
env = {
|
||||
@@ -157,6 +158,7 @@ buildPythonPackage (finalAttrs: {
|
||||
typer
|
||||
typing-extensions
|
||||
uvicorn
|
||||
urllib3
|
||||
]
|
||||
++ lib.optionals (pythonAtLeast "3.13") [
|
||||
audioop-lts
|
||||
@@ -196,6 +198,10 @@ buildPythonPackage (finalAttrs: {
|
||||
++ finalAttrs.passthru.optional-dependencies.oauth
|
||||
++ pydantic.optional-dependencies.email;
|
||||
|
||||
pythonRelaxDeps = [
|
||||
"tomlkit" # pre-emptive upper bound
|
||||
];
|
||||
|
||||
preBuild = ''
|
||||
pnpm build
|
||||
pnpm package
|
||||
@@ -440,6 +446,7 @@ buildPythonPackage (finalAttrs: {
|
||||
'';
|
||||
pythonImportsCheck = null;
|
||||
dontCheckRuntimeDeps = true;
|
||||
dontCheckPythonMetadata = true; # broken due to changed pname
|
||||
});
|
||||
|
||||
# We can't use gitUpdater, because we need to update the pnpm hash.
|
||||
|
||||
@@ -28,6 +28,10 @@
|
||||
# gradio
|
||||
gradio,
|
||||
requests,
|
||||
# oauth
|
||||
authlib,
|
||||
fastapi,
|
||||
itsdangerous,
|
||||
# mcp
|
||||
mcp,
|
||||
|
||||
@@ -37,14 +41,14 @@
|
||||
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "huggingface-hub";
|
||||
version = "1.10.2";
|
||||
version = "1.16.0";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "huggingface";
|
||||
repo = "huggingface_hub";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-Q9N0QnxV8oJcxUsJzv4wX8Z6FkNdEfUH5BEVoZolsRY=";
|
||||
hash = "sha256-GuTsoz7ow3A/PJyU3L/xLp56r3RVx5O1YH3nr3T4u7U=";
|
||||
};
|
||||
|
||||
build-system = [ setuptools ];
|
||||
@@ -65,11 +69,6 @@ buildPythonPackage (finalAttrs: {
|
||||
all = [
|
||||
|
||||
];
|
||||
torch = [
|
||||
torch
|
||||
safetensors
|
||||
]
|
||||
++ safetensors.optional-dependencies.torch;
|
||||
fastai = [
|
||||
toml
|
||||
fastai
|
||||
@@ -85,6 +84,17 @@ buildPythonPackage (finalAttrs: {
|
||||
mcp = [
|
||||
mcp
|
||||
];
|
||||
oauth = [
|
||||
authlib
|
||||
fastapi
|
||||
httpx
|
||||
itsdangerous
|
||||
];
|
||||
torch = [
|
||||
torch
|
||||
safetensors
|
||||
]
|
||||
++ safetensors.optional-dependencies.torch;
|
||||
};
|
||||
|
||||
nativeCheckInputs = [
|
||||
|
||||
Reference in New Issue
Block a user