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

commit 10147c35e4793efd1eb77cf85efa13e983a1df7e
Author: Nicolas Graves <[email protected]>
AuthorDate: Tue Oct 28 21:08:23 2025 +0100

    gnu: python-yarl: Remove python-pytest-cov requirement.
    
    * gnu/packages/python-web.scm (python-yarl)[arguments]<#:phases>: Add
    phase 'avoid-pytest-cov-preload.
    [native-inputs]: Remove python-covdefaults, python-pytest-cov,
    python-wheel.
    
    Signed-off-by: Sharlatan Hellseher <[email protected]>
---
 gnu/packages/python-web.scm | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 20d2032132..6837f8fe2d 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -8900,6 +8900,10 @@ asynchronously.")
       #:test-flags '(list "--ignore-glob=tests/test_*_benchmarks.py")
       #:phases
       '(modify-phases %standard-phases
+         (add-after 'unpack 'avoid-pytest-cov-preload
+           (lambda _
+             (substitute* "pytest.ini"
+               (("-p pytest_cov") ""))))
          (add-after 'unpack 'patch-build-system
            (lambda _
              ;; XXX: I don't know how to tell it to build the extensions in
@@ -8907,15 +8911,12 @@ asynchronously.")
              (substitute* "packaging/pep517_backend/_backend.py"
                (("build_inplace=False") "build_inplace=True")))))))
     (native-inputs
-     (list python-covdefaults
-           python-cython
+     (list python-cython
            python-expandvars
            python-pytest
-           python-pytest-cov
            python-pytest-xdist
            python-setuptools
-           python-tomli
-           python-wheel))
+           python-tomli))
     (propagated-inputs
      (list python-packaging python-idna python-multidict python-propcache))
     (home-page "https://github.com/aio-libs/yarl/";)

Reply via email to