Subject: [PATCH v4 37/52] gnu: multidict: Remove python-pytest-cov native-input.

From: Nicolas Graves <[email-masked]>
Date: Wed, 26 Feb 2025 04:10:45 +0100

* gnu/packages/python-xyz.scm (multidict)
[native-inputs]: Remove python-pytest-cov.
[arguments]{phases}: Add 'avoid-pytest-cov-preload phase.
---
 gnu/packages/python-xyz.scm | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index b2cad47edf..881d07045e 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -10943,9 +10943,15 @@ (define-public python-multidict
         (base32
          "0jlgjpclkh5g6vr1danl6alz0cza2jlzdqh3q03d4s8ckfzjxbi2"))))
     (build-system pyproject-build-system)
+    (arguments
+     (list #:phases #~(modify-phases %standard-phases
+                        (add-after 'unpack 'avoid-pytest-cov-preload
+                          (lambda _
+                            (substitute* "pytest.ini"
+                              (("-p pytest_cov") "")))))))
     (propagated-inputs (list python-typing-extensions))
     (native-inputs
-     (list python-pytest python-pytest-cov python-setuptools python-wheel))
+     (list python-pytest python-setuptools python-wheel))
     (home-page "https://github.com/aio-libs/multidict/")
     (synopsis "Multidict implementation")
     (description "Multidict is dict-like collection of key-value pairs
-- 
2.48.1