python3Packages.gradio-client: add sans-reverse-dependencies passthru

(cherry picked from commit 590d611f10)
This commit is contained in:
Peder Bergebakken Sundt
2026-07-09 12:46:48 +02:00
parent 682c7e5254
commit 5c49d5ba69
2 changed files with 19 additions and 3 deletions

View File

@@ -120,6 +120,22 @@ buildPythonPackage (finalAttrs: {
__darwinAllowLocalNetworking = true;
passthru = {
# Cyclic dependencies are fun!
# overridePythonAttrs is not available in finalAttrs.finalPackage
sans-reverse-dependencies = finalAttrs.finalPackage.overrideAttrs (old: {
pname = old.pname + "-sans-reverse-dependencies";
# we aggressively remove all checkPhase related attrs
# to save on rebuilds during bumps
doInstallCheck = false;
doCheck = false;
preCheck = "";
enabledTestPaths = [ ];
disabledTestMarks = [ ];
disabledTests = [ ];
pythonImportsCheck = null;
dontCheckRuntimeDeps = true;
});
inherit (gradio) updateScript;
};

View File

@@ -414,14 +414,14 @@ buildPythonPackage (finalAttrs: {
# gradio.sans-reverse-dependencies, which would create a build cycle.
# Break it by giving hf-gradio a checkless gradio-client.
hf-gradio = hf-gradio.override {
gradio-client = gradio-client.overridePythonAttrs {
doCheck = false;
};
gradio-client = gradio-client.sans-reverse-dependencies;
};
}).overridePythonAttrs
(old: {
pname = old.pname + "-sans-reverse-dependencies";
pythonRemoveDeps = (old.pythonRemoveDeps or [ ]) ++ [ "gradio-client" ];
# we aggressively remove all checkPhase related attrs
# to save on rebuilds during bumps
doInstallCheck = false;
doCheck = false;
postPatch = "";