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

commit d3b64c501f897956bd44cae5c5f4d87c77ec9576
Author: Dariqq <[email protected]>
AuthorDate: Mon Jun 15 09:39:31 2026 +0000

    gnu: r-parallelly: Don't depend on openssh.
    
    * gnu/packages/cran.scm (r-parallelly)[inputs]: Remove openssh.
    [arguments]: Add a 'pre-check phase to add dummy ssh to PATH.
    
    Change-Id: I84a84d1a3ff6797723f3ef20f11a6af3eb646f85
    Signed-off-by: Andreas Enge <[email protected]>
---
 gnu/packages/cran.scm | 15 +++++++++++++--
 1 file changed, 13 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index 4775bb7f10..3039dee6e9 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -37936,8 +37936,19 @@ them in distributed compute environments.")
          "1i4pfy3y7dhzywnmx270cl442k2xlpd8ix127c6fgpvibi8z9h48"))))
     (properties `((upstream-name . "parallelly")))
     (build-system r-build-system)
-    ;; Tests require SSH
-    (native-inputs (list openssh))
+    (arguments
+     (list
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-before 'check 'pre-check
+            (lambda _
+              ;; dont depend on openssh
+              ;; it does not actually call it
+              ;; just asserts that a ssh is in PATH
+              (let* ((tmp (getenv "TMPDIR"))
+                     (ssh (in-vicinity tmp "ssh")))
+                (symlink (which "false") ssh)
+                (setenv "PATH" (string-append tmp ":" (getenv "PATH")))))))))
     (home-page "https://github.com/HenrikBengtsson/parallelly";)
     (synopsis "Enhancements of the parallel package")
     (description

Reply via email to