summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/r-geonames/package.py
blob: d49fee04a1b7a66c0f4cb5eb3c992955f7596ab1 (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
# 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 RGeonames(RPackage):
    """Interface to the "Geonames" Spatial Query Web Service.

    The web service at <https://www.geonames.org/> provides a number of spatial
    data queries, including administrative area hierarchies, city locations and
    some country postal code queries. A (free) username is required and rate
    limits exist."""

    cran = "geonames"

    license("GPL-3.0-only")

    version("0.999", sha256="1dd7bbd82d9425d14eb36f8e5bf431feaccfe3b0c4e70bf38f44f13dfc59e17b")

    depends_on("r@2.2.0:", type=("build", "run"))
    depends_on("r-rjson", type=("build", "run"))