python3Packages.sphinxHook: Avoid propagating sphinx

Fixes some side effects of #249157 (see #255810)
This commit is contained in:
Leandro Reina 2023-09-30 18:21:18 +02:00
parent c67f06b3f0
commit 48f25989c3
2 changed files with 5 additions and 2 deletions

View File

@ -227,6 +227,9 @@ in {
sphinxHook = callPackage ({ makePythonHook, installShellFiles }:
makePythonHook {
name = "python${python.pythonVersion}-sphinx-hook";
propagatedBuildInputs = [ pythonForBuild.pkgs.sphinx installShellFiles ];
propagatedBuildInputs = [ installShellFiles ];
substitutions = {
sphinxBuild = "${pythonForBuild.pkgs.sphinx}/bin/sphinx-build";
};
} ./sphinx-hook.sh) {};
}

View File

@ -38,7 +38,7 @@ buildSphinxPhase() {
for __builder in "${__sphinxBuilders[@]}"; do
echo "Executing sphinx-build with ${__builder} builder"
sphinx-build -M "${__builder}" "${__sphinxRoot}" ".sphinx/${__builder}" -v
@sphinxBuild@ -M "${__builder}" "${__sphinxRoot}" ".sphinx/${__builder}" -v
done
runHook postBuildSphinx