Subject: [bug#70858] [PATCH v4 31/52] gnu: python-dateutil: Remove python-pytest-cov native-input.

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

* gnu/packages/time.scm (python-dateutil):
  [native-inputs]: Remove python-pytest-cov.
  [arguments]<#:phases>: Add remove-pytest-cov-dep phase.

Change-Id: Id82a147d6e40383ecc2661ac896b65b858c181e0
---
 gnu/packages/time.scm | 18 ++++++++++++------
 1 file changed, 12 insertions(+), 6 deletions(-)

diff --git a/gnu/packages/time.scm b/gnu/packages/time.scm
index 9ed43d1885..5f07e0860a 100644
--- a/gnu/packages/time.scm
+++ b/gnu/packages/time.scm
@@ -277,14 +277,20 @@ (define-public python-dateutil
     (build-system pyproject-build-system)
     (arguments
      (list
-      #:test-flags '(list  ; avoid freezegun dependency
-                     "--ignore=dateutil/test/test_utils.py"
-                     "--ignore=dateutil/test/test_rrule.py"
-                     ;; XXX: Fails to get timezone from /etc/localtime.
-                     "--ignore=dateutil/test/test_tz.py")))
+      #:test-flags '(list "dateutil/test" "docs"
+                          ;; avoid freezegun dependency
+                          "--ignore=dateutil/test/test_utils.py"
+                          "--ignore=dateutil/test/test_rrule.py"
+                          ;; XXX: Fails to get timezone from /etc/localtime.
+                          "--ignore=dateutil/test/test_tz.py")
+      #:phases #~(modify-phases %standard-phases
+                   (add-after 'unpack 'remove-pytest-cov-dep
+                     (lambda _
+                       (substitute* "dateutil/test/conftest.py"
+                         (("item\\.add_marker\\(pytest\\.mark\\.no_cover\\)")
+                          "pass")))))))
     (native-inputs
      (list python-pytest
-           python-pytest-cov
            python-setuptools
            python-setuptools-scm
            python-wheel))
-- 
2.48.1