Subject: [bug#76835] [PATCH v3 13/40] gnu: python-sphinx-panels: Update input to python-sphinx-5.

From: Nicolas Graves <[email-masked]>
Date: Mon, 10 Mar 2025 03:16:18 +0100

* gnu/packages/sphinx.scm (python-sphinx-panels):
[arguments]{phases}: Add 'loosen-requirements phase.
[propagated-inputs]: Replace python-sphinx-4 by python-sphinx-5.
---
 gnu/packages/sphinx.scm | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/sphinx.scm b/gnu/packages/sphinx.scm
index 5f06cb04f5..024bfe986a 100644
--- a/gnu/packages/sphinx.scm
+++ b/gnu/packages/sphinx.scm
@@ -608,7 +608,15 @@ (define-public python-sphinx-panels
         (sha256
          (base32 "1ivqz6yv96a2jp59kylg1gbkrmzq6zwilppz3ij0zrkjn25zb97k"))))
     (build-system pyproject-build-system)
-    (propagated-inputs (list python-docutils-0.15 python-sphinx-4))
+    (arguments
+     (list #:phases
+           #~(modify-phases %standard-phases
+               (add-after 'unpack 'loosen-requirements
+                 (lambda _
+                   (substitute* "setup.py"
+                     (("sphinx>=2,<5")
+                      "sphinx>=2,<6")))))))
+    (propagated-inputs (list python-docutils-0.15 python-sphinx-5))
     (native-inputs
      (list python-pytest
            python-pytest-regressions
-- 
2.48.1