python3Packages.gradio{,-client}: unbreak

fixes https://hydra.nixos.org/build/339136111
This commit is contained in:
Peder Bergebakken Sundt
2026-07-27 16:35:50 +02:00
parent aac3a899cc
commit 4fa87fa204
2 changed files with 8 additions and 1 deletions

View File

@@ -134,6 +134,7 @@ buildPythonPackage (finalAttrs: {
disabledTests = [ ];
pythonImportsCheck = null;
dontCheckRuntimeDeps = true;
dontCheckPythonMetadata = true; # broken due to changed pname
});
inherit (gradio) updateScript;

View File

@@ -49,6 +49,7 @@
typer,
typing-extensions,
uvicorn,
urllib3,
# oauth
authlib,
@@ -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
@@ -439,8 +445,8 @@ buildPythonPackage (finalAttrs: {
shopt -u globstar
'';
pythonImportsCheck = null;
dontCheckPythonMetadata = true;
dontCheckRuntimeDeps = true;
dontCheckPythonMetadata = true; # broken due to changed pname
});
# We can't use gitUpdater, because we need to update the pnpm hash.