[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/55: import/cran: Also update annotation and experiment packages.
From: |
guix-commits |
Subject: |
01/55: import/cran: Also update annotation and experiment packages. |
Date: |
Mon, 22 Jan 2024 08:00:55 -0500 (EST) |
rekado pushed a commit to branch master
in repository guix.
commit 29353820f2df8e4434bbdae2d36b36d0151cc027
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Mon Jan 22 12:38:27 2024 +0100
import/cran: Also update annotation and experiment packages.
* guix/import/cran.scm (latest-bioconductor-release): Determine package type
and pass it to LATEST-BIOCONDUCTOR-PACKAGE-VERSION and BIOCONDUCTOR-URI.
(%bioconductor-updater): Compose all bioconductor predicates.
Change-Id: Icef3ae05e28ed0f2796d9abf90e51821d2dfcc4c
---
guix/import/cran.scm | 19 ++++++++++++++++---
1 file changed, 16 insertions(+), 3 deletions(-)
diff --git a/guix/import/cran.scm b/guix/import/cran.scm
index 57a8e86fcb..d49bd96c9a 100644
--- a/guix/import/cran.scm
+++ b/guix/import/cran.scm
@@ -928,15 +928,25 @@ s-expression corresponding to that package, or #f on
failure."
(define upstream-name
(package->upstream-name pkg))
+ (define type
+ (cond
+ ((bioconductor-data-package? pkg)
+ 'annotation)
+ ((bioconductor-experiment-package? pkg)
+ 'experiment)
+ ((bioconductor-package? pkg)
+ #true)
+ (else #false)))
+
(define latest-version
- (latest-bioconductor-package-version upstream-name))
+ (latest-bioconductor-package-version upstream-name type))
(and latest-version
;; Bioconductor does not provide signatures.
(upstream-source
(package (package-name pkg))
(version latest-version)
- (urls (bioconductor-uri upstream-name latest-version))
+ (urls (bioconductor-uri upstream-name latest-version type))
(inputs
(let ((meta (fetch-description 'bioconductor upstream-name)))
(cran-package-inputs meta 'bioconductor))))))
@@ -990,7 +1000,10 @@ s-expression corresponding to that package, or #f on
failure."
(upstream-updater
(name 'bioconductor)
(description "Updater for Bioconductor packages")
- (pred bioconductor-package?)
+ (pred (lambda (pkg)
+ (or (bioconductor-package? pkg)
+ (bioconductor-data-package? pkg)
+ (bioconductor-experiment-package? pkg))))
(import latest-bioconductor-release)))
;;; cran.scm ends here
- branch master updated (d264237d55 -> bafc6efe48), guix-commits, 2024/01/22
- 43/55: gnu: r-all: Update to 1.44.0., guix-commits, 2024/01/22
- 01/55: import/cran: Also update annotation and experiment packages.,
guix-commits <=
- 05/55: gnu: r-org-sc-sgd-db: Update to 3.18.0., guix-commits, 2024/01/22
- 09/55: gnu: r-go-db: Update to 3.18.0., guix-commits, 2024/01/22
- 12/55: gnu: r-org-dm-eg-db: Update to 3.18.0., guix-commits, 2024/01/22
- 02/55: import/cran: Set HOME when ExperimentHub is among the inputs., guix-commits, 2024/01/22
- 04/55: gnu: r-org-bt-eg-db: Update to 3.18.0., guix-commits, 2024/01/22
- 13/55: gnu: r-org-dr-eg-db: Update to 3.18.0., guix-commits, 2024/01/22
- 11/55: gnu: r-org-ce-eg-db: Update to 3.18.0., guix-commits, 2024/01/22
- 27/55: gnu: r-chromstardata: Update to 1.28.0., guix-commits, 2024/01/22
- 17/55: gnu: r-pfam-db: Update to 3.18.0., guix-commits, 2024/01/22
- 16/55: gnu: r-txdb-hsapiens-ucsc-hg38-knowngene: Update to 3.18.0., guix-commits, 2024/01/22