From 978f74eac75fcbf6b07782724a9a3cc3d89ae409 Mon Sep 17 00:00:00 2001 From: Glenn Johnson Date: Mon, 18 Jan 2021 12:55:04 -0600 Subject: [PATCH] add version 1.2.0 to r-gh (#21112) --- var/spack/repos/builtin/packages/r-gh/package.py | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/var/spack/repos/builtin/packages/r-gh/package.py b/var/spack/repos/builtin/packages/r-gh/package.py index f654fb1c04..b3d39918db 100644 --- a/var/spack/repos/builtin/packages/r-gh/package.py +++ b/var/spack/repos/builtin/packages/r-gh/package.py @@ -7,17 +7,22 @@ class RGh(RPackage): - """Minimal client to access the 'GitHub' 'API'.""" + """'GitHub' 'API' + + Minimal client to access the 'GitHub' 'API'.""" homepage = "https://github.com/r-lib/gh#readme" url = "https://cloud.r-project.org/src/contrib/gh_1.0.1.tar.gz" list_url = "https://cloud.r-project.org/src/contrib/Archive/gh" + version('1.2.0', sha256='2988440ed2ba4b241c8ffbafbfdad29493574980a9aeba210521dadda91f7eff') version('1.1.0', sha256='de9faf383c3fe5e87a75391d82cf71b1331b3c80cd00c4203146a303825d89ad') version('1.0.1', sha256='f3c02b16637ae390c3599265852d94b3de3ef585818b260d00e7812595b391d2') - depends_on('r-ini', type=('build', 'run')) - depends_on('r-jsonlite', type=('build', 'run')) + depends_on('r-cli', when='@1.1.0:', type=('build', 'run')) + depends_on('r-cli@2.0.1:', when='@1.2.0:', type=('build', 'run')) + depends_on('r-gitcreds', when='@1.2.0:', type=('build', 'run')) depends_on('r-httr', type=('build', 'run')) depends_on('r-httr@1.2:', when='@1.1.0:', type=('build', 'run')) - depends_on('r-cli', when='@1.1.0:', type=('build', 'run')) + depends_on('r-ini', type=('build', 'run')) + depends_on('r-jsonlite', type=('build', 'run'))