mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-25 17:55:21 +00:00
python3Packages.gradio{,-client}: unbreak
fixes https://hydra.nixos.org/build/339136111
This commit is contained in:
@@ -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,
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user