guix_mirror_bot pushed a commit to branch python-team
in repository guix.

commit 3db2c5db96d1663df80ddea5a06004a35c76ed5a
Author: Nguyễn Gia Phong <[email protected]>
AuthorDate: Tue Jan 20 22:44:17 2026 +0900

    gnu: python-pyee: Fix build.
    
    * gnu/packages/python-xyz.scm (python-pyee) [arguments] <#:phases>:
      Add phase 'patch-pytest-config for compatibility with pytest 9.
    
    Change-Id: I17370c6648cbb9983584239236b19493cc28be4e
    Signed-off-by: Sharlatan Hellseher <[email protected]>
---
 gnu/packages/python-xyz.scm | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 6ee96383ed..aebfa3e5c6 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -34299,6 +34299,16 @@ and to reference instance methods using 
weak-references.")
        (sha256
         (base32 "10xfkf5yvkfyf9ccm0k88gjhqv00hcsal33p937a1lijmxqbx398"))))
     (build-system pyproject-build-system)
+    (arguments
+     (list
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'unpack 'patch-pytest-config
+            (lambda _
+              (substitute* "pyproject.toml"
+                ;; Pytest 9 expects an argument TOML list here,
+                ;; while we already pass -vv and do not want --capture=no.
+                (("addopts = \"--verbose -s\".*") "")))))))
     (propagated-inputs (list python-typing-extensions))
     (native-inputs
      (list python-mock

Reply via email to