Subject: [PATCH 23/32] gnu: python-tinycss2: Remove python-pytest-cov native-input.

From: Nicolas Graves <[email-masked]>
Date: Fri, 10 May 2024 09:55:27 +0200

* gnu/packages/python-web.scm (python-tinycss2):
  [arguments]<#:phases>: Add phase remove-unwanted-dependency to
  ignore coverage options.
  [native-inputs]: Remove python-pytest-cov.

Change-Id: I853fe3371be84be1655db0ee8d1dca8d23c50ef9
---
 gnu/packages/python-web.scm | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index c73bc6294e9..8c51282c9cb 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -5895,11 +5895,18 @@ (define-public python-tinycss2
        (sha256
         (base32 "0zyc48vbmczpqj7f3f0d7zb3bz29fyj50dg0m6bbwbr5i88kq3sq"))))
     (build-system pyproject-build-system)
+    (arguments
+     (list
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-before 'check 'remove-unwanted-dependencies
+            (lambda _
+              (substitute* "pyproject.toml"
+                (("^addopts.*") "")))))))
     (propagated-inputs
      (list python-webencodings))
     (native-inputs
-     (list python-flit python-pytest python-pytest-cov
-           python-pytest-flake8 python-pytest-isort))
+     (list python-flit python-pytest python-pytest-flake8 python-pytest-isort))
     (home-page "https://tinycss2.readthedocs.io/")
     (synopsis "Low-level CSS parser for Python")
     (description "@code{tinycss2} can parse strings, return Python objects
-- 
2.41.0