import: cran: Ignore invalid packages from the system requirements.

* guix/import/cran.scm (description->package): Filter invalid packages from
the list of system requirements.
This commit is contained in:
Ricardo Wurmus 2019-05-28 23:56:59 +02:00
parent e4519ee73d
commit 531940d388
No known key found for this signature in database
GPG Key ID: 197A5888235FACAC
1 changed files with 3 additions and 1 deletions

View File

@ -313,7 +313,9 @@ from the alist META, which was derived from the R package's DESCRIPTION file."
(tarball (download source-url))
(sysdepends (append
(if (needs-zlib? tarball) '("zlib") '())
(map string-downcase (listify meta "SystemRequirements"))))
(filter (lambda (name)
(not (member name invalid-packages)))
(map string-downcase (listify meta "SystemRequirements")))))
(propagate (filter (lambda (name)
(not (member name (append default-r-packages
invalid-packages))))