python310Packages.pip: fix build failure caused by sphinx-8.2.3

This is related to the issue #394105

Changed files
+7 -2
pkgs
development
python-modules
+7 -2
pkgs/development/python-modules/pip/default.nix
···
lib,
buildPythonPackage,
fetchFromGitHub,
+
pythonAtLeast,
# build-system
installShellFiles,
···
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