From 4c468efa4022277ba19e3d15ab627b586df4092e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Sun, 16 Feb 2025 23:13:44 +0100 Subject: [PATCH] python3{9,10}.doc: fix build --- pkgs/development/interpreters/python/cpython/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/interpreters/python/cpython/default.nix b/pkgs/development/interpreters/python/cpython/default.nix index d0cb05268d43..473d96d3ce6b 100644 --- a/pkgs/development/interpreters/python/cpython/default.nix +++ b/pkgs/development/interpreters/python/cpython/default.nix @@ -629,6 +629,11 @@ in with passthru; stdenv.mkDerivation (finalAttrs: { }) ]; + postPatch = lib.optionalString (pythonAtLeast "3.9" && pythonOlder "3.11") '' + substituteInPlace Doc/tools/extensions/pyspecific.py \ + --replace-fail "from sphinx.util import status_iterator" "from sphinx.util.display import status_iterator" + ''; + dontConfigure = true; dontBuild = true;