summary refs log tree commit diff
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2021-03-15 22:05:43 +0100
committerRicardo Wurmus <rekado@elephly.net>2021-03-15 22:06:57 +0100
commit29e992c03001ce0c6b4a5ed33d9db7d9593cc23b (patch)
tree58d5e343f9357b632eb4b41ae7b755e5e0b0fbad
parentfcb122b4ed3f8e7fde815a843338921e5d8302b0 (diff)
downloadguix-29e992c03001ce0c6b4a5ed33d9db7d9593cc23b.tar.gz
gnu: r-seurat: Fix build.
This is a follow-up to commit e4d4046999304a3693da80cf0fdfe5fd5753b2b7

* gnu/packages/cran.scm (r-seurat)[arguments]: Patch NAMESPACE file.
-rw-r--r--gnu/packages/cran.scm12
1 files changed, 12 insertions, 0 deletions
diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index 3afe67f7cf..5617383cbc 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -26491,6 +26491,18 @@ other R users.")
                 "1mp3py00bmzj4541d8ry5sfzkpfzvnl9dpa8n4qhakd13dl30xdn"))))
     (properties `((upstream-name . "Seurat")))
     (build-system r-build-system)
+    ;; This is needed because r-spatstat has been split up and there has
+    ;; been no new release of Seurat since then.
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'fix-spatstat-import
+           (lambda _
+             (substitute* "NAMESPACE"
+               (("importFrom\\(spatstat,markvario\\)")
+                "importFrom(spatstat.core,markvario)")
+               (("importFrom\\(spatstat,ppp\\)")
+                "importFrom(spatstat.geom,ppp)")))))))
     (propagated-inputs
      `(("r-cluster" ,r-cluster)
        ("r-cowplot" ,r-cowplot)