summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/r-styler/package.py
blob: a64f522bccc1a912bed505eab876037d5ed4dcf9 (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
36
37
38
39
40
41
42
43
44
# Copyright 2013-2024 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 RStyler(RPackage):
    """Non-Invasive Pretty Printing of R Code.

    Pretty-prints R code without changing the user's formatting intent."""

    cran = "styler"

    license("MIT")

    version("1.9.1", sha256="c80fa3c062f007645ec820b5b087d4d5784e7797cc88d030ab59fb5823ded0bb")
    version("1.8.1", sha256="15505fa85f0aa2902bc8af3f00b2aeb205d41a92b77bffbd176d657753ee81e9")
    version("1.8.0", sha256="4f8b74c1ac158b0a4433b6008da6bb708f3c9ed1c7fb9bb5d79748858cb484c7")
    version("1.7.0", sha256="3e49f3ac2e65f9bdab15837a4e629db35c8fd0a15a74daa057354ba01e3022ce")
    version("1.6.2", sha256="a62fcc76aac851069f33874f9eaabdd580973b619cfc625d6ec910476015f75c")
    version("1.3.2", sha256="3fcf574382c607c2147479bad4f9fa8b823f54fb1462d19ec4a330e135a44ff1")

    depends_on("r@3.4.0:", type=("build", "run"), when="@1.7.0:")
    depends_on("r@3.5.0:", type=("build", "run"), when="@1.8.0:")
    depends_on("r-cli@1.1.0:", type=("build", "run"))
    depends_on("r-cli@3.1.1:", type=("build", "run"), when="@1.7.0:")
    depends_on("r-magrittr@1.0.1:", type=("build", "run"))
    depends_on("r-magrittr@2.0.0:", type=("build", "run"), when="@1.6.2:")
    depends_on("r-purrr@0.2.3:", type=("build", "run"))
    depends_on("r-r-cache@0.14.0:", type=("build", "run"))
    depends_on("r-r-cache@0.15.0:", type=("build", "run"), when="@1.6.2:")
    depends_on("r-rlang@0.1.1:", type=("build", "run"))
    depends_on("r-rprojroot@1.1:", type=("build", "run"))
    depends_on("r-vctrs@0.4.1:", type=("build", "run"), when="@1.8.0:")
    depends_on("r-withr@1.0.0:", type=("build", "run"))
    depends_on("r-withr@2.3.0:", type=("build", "run"), when="@1.8.1:")

    depends_on("r-backports@1.1.0:", type=("build", "run"), when="@:1.6.2")
    depends_on("r-xfun@0.1:", type=("build", "run"), when="@:1.6.2")
    depends_on("r-glue", type=("build", "run"), when="@1.6.2:1.7.0")
    depends_on("r-rematch2@2.0.1:", type=("build", "run"), when="@:1.7.0")
    depends_on("r-tibble@1.4.2:", type=("build", "run"), when="@:1.7.0")