summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/r-rvest/package.py
blob: 1872315f773bff45d7a1105dabec3aa1d35984c9 (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
# Copyright 2013-2019 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 import *


class RRvest(RPackage):
    """Wrappers around the 'xml2' and 'httr' packages to make it easy to
       download, then manipulate, HTML and XML."""

    homepage = "https://github.com/hadley/rvest"
    url      = "https://cloud.r-project.org/src/contrib/rvest_0.3.2.tar.gz"
    list_url = "https://cloud.r-project.org/src/contrib/Archive/rvest"

    version('0.3.4', sha256='413e171b9e89b7dc4e8b41165027cf19eb97cd73e149c252237bbdf0d0a4254a')
    version('0.3.3', sha256='b10a87fa2d733f7c0fc567242ef0ab10a1a77d58d51796996cc0fd81381a556f')
    version('0.3.2', '78c88740850e375fc5da50d37734d1b2')

    depends_on('r@3.0.1:', when='@:0.3.2', type=('build', 'run'))
    depends_on('r@3.1:', when='@0.3.3', type=('build', 'run'))
    depends_on('r@3.2:', when='@0.3.4:', type=('build', 'run'))
    depends_on('r-xml2', type=('build', 'run'))
    depends_on('r-httr@0.5:', type=('build', 'run'))
    depends_on('r-selectr', type=('build', 'run'))
    depends_on('r-magrittr', type=('build', 'run'))