gnu: r-seurat: Fix build.

This is a follow-up to commit e4d4046999

* gnu/packages/cran.scm (r-seurat)[arguments]: Patch NAMESPACE file.
This commit is contained in:
Ricardo Wurmus 2021-03-15 22:05:43 +01:00
parent fcb122b4ed
commit 29e992c030
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -26491,6 +26491,18 @@ (define-public r-seurat
"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)