summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/r-gh/package.py
blob: ea2db9d1bcd8e3a4c38c2ddf048487a68781420e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)

from spack.package import *


class RGh(RPackage):
    """'GitHub' 'API'.

    Minimal client to access the 'GitHub' 'API'."""

    cran = "gh"

    license("MIT")

    version("1.4.0", sha256="68c69fcd18429b378e639a09652465a4e92b7b5b5704804d0c5b1ca2b9b58b71")
    version("1.3.1", sha256="fbaea2abdeceb03d28839fd0e58c2eea01092f9ef92dcc044718ef0d298612ef")
    version("1.3.0", sha256="a44039054e8ca56496f2d9c7a10cdadf4a7383bc91086e768ba7e7f1fbcaed1c")
    version("1.2.0", sha256="2988440ed2ba4b241c8ffbafbfdad29493574980a9aeba210521dadda91f7eff")
    version("1.1.0", sha256="de9faf383c3fe5e87a75391d82cf71b1331b3c80cd00c4203146a303825d89ad")
    version("1.0.1", sha256="f3c02b16637ae390c3599265852d94b3de3ef585818b260d00e7812595b391d2")

    depends_on("r@3.4:", type=("build", "run"), when="@1.3.1:")

    depends_on("r-cli", type=("build", "run"), when="@1.1.0:")
    depends_on("r-cli@2.0.1:", type=("build", "run"), when="@1.2.0:")
    depends_on("r-cli@3.0.1:", type=("build", "run"), when="@1.3.1:")
    depends_on("r-gitcreds", type=("build", "run"), when="@1.2.0:")
    depends_on("r-httr2", type=("build", "run"), when="@1.4.0:")
    depends_on("r-ini", type=("build", "run"))
    depends_on("r-jsonlite", type=("build", "run"))
    depends_on("r-rlang@1.0.0:", type=("build", "run"), when="@1.4.0:")
    depends_on("r-httr@1.2:", type=("build", "run"), when="@1.1.0:1.3.1")