# 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 RSpacetime(RPackage):
    """spacetime: Classes and Methods for Spatio-Temporal Data"""

    homepage = "http://github.com/edzer/spacetime"
    url      = "https://cloud.r-project.org/src/contrib/spacetime_1.2-2.tar.gz"
    list_url = "https://cloud.r-project.org/src/contrib/Archive/spacetime"

    version('1.2-2', sha256='1e9d3f92e5c4614a69c82a58bf0b5c829b4ed262bf1250bef943ae286056ea2d')

    depends_on('r@3.0.0:', type=('build', 'run'))
    depends_on('r-intervals', type=('build', 'run'))
    depends_on('r-lattice', type=('build', 'run'))
    depends_on('r-sp@1.1-0:', type=('build', 'run'))
    depends_on('r-xts@0.8-8:', type=('build', 'run'))
    depends_on('r-zoo@1.7-9:', type=('build', 'run'))
