python310Packages.pip: fix build failure caused by sphinx-8.2.3 (#430459)

This commit is contained in:
Peder Bergebakken Sundt
2025-08-21 00:33:44 +02:00
committed by GitHub
@@ -2,6 +2,7 @@
lib,
buildPythonPackage,
fetchFromGitHub,
pythonAtLeast,
# build-system
installShellFiles,
@@ -51,20 +52,24 @@ let
installShellFiles
setuptools
wheel
]
++ lib.optionals (pythonAtLeast "3.11") [
# docs
# (sphinx requires Python 3.11)
sphinx
sphinx-issues
];
outputs = [
"out"
]
++ lib.optionals (pythonAtLeast "3.11") [
"man"
];
# pip uses a custom sphinx extension and unusual conf.py location, mimic the internal build rather than attempting
# to fit sphinxHook see https://github.com/pypa/pip/blob/0778c1c153da7da457b56df55fb77cbba08dfb0c/noxfile.py#L129-L148
postBuild = ''
postBuild = lib.optionalString (pythonAtLeast "3.11") ''
cd docs
# remove references to sphinx extentions only required for html doc generation