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

commit a6d70cd6fb65371ca901ae28a18d486d345a92b1
Author: Ricardo Wurmus <[email protected]>
AuthorDate: Tue Feb 17 12:47:40 2026 +0100

    gnu: r-httr2: Replace custom phase with #:skipped-tests.
    
    * gnu/packages/cran.scm (r-httr2)[arguments]: Remove phase 
'delete-bad-tests;
    provide #:skipped-tests argument.
    
    Change-Id: Ia505859fcb989980e0a09574b96342affb1929e6
---
 gnu/packages/cran.scm | 20 +++++++-------------
 1 file changed, 7 insertions(+), 13 deletions(-)

diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index 3c20bba22e..474697fa5e 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -14244,19 +14244,13 @@ functions make it easy to control additional request 
components.")
     (build-system r-build-system)
     (arguments
      (list
-      #:phases
-      '(modify-phases %standard-phases
-         (add-after 'unpack 'delete-bad-tests
-           (lambda _
-             ;; These tests need Internet access.
-             (with-directory-excursion "tests/testthat/"
-               (delete-file "test-oauth.R")
-               (substitute* "test-req-auth-aws.R"
-                 ((".*can correctly sign a request with dummy credentials.*" m)
-                  (string-append m "skip('skip');\n")))
-               (substitute* "test-req-body.R"
-                 ((".*can send file.*" m)
-                  (string-append m "skip('skip');\n")))))))))
+      ;; These tests need Internet access.
+      #:skipped-tests
+      '(("test-req-auth-aws.R"
+         "can correctly sign a request with dummy credentials")
+        ("test-req-body.R"
+         "can send file")
+        "test-oauth.R")))
     (propagated-inputs
      (list r-cli
            r-curl

Reply via email to