import/cran: Allow overriding description fetch function.

* guix/import/cran.scm (cran->guix-package): New keyword argument
FETCH-DESCRIPTION.
This commit is contained in:
Lars-Dominik Braun 2022-10-18 12:45:45 +02:00 committed by Ricardo Wurmus
parent d57dd25d38
commit 08028c443e
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -645,6 +645,7 @@ (define* (description->package repository meta #:key (license-prefix identity))
(define cran->guix-package
(memoize
(lambda* (package-name #:key (repo 'cran) version (license-prefix identity)
(fetch-description fetch-description)
#:allow-other-keys)
"Fetch the metadata for PACKAGE-NAME from REPO and return the `package'
s-expression corresponding to that package, or #f on failure."