# Copyright 2013-2022 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 RGsl(RPackage):
    """Wrapper for the Gnu Scientific Library.

    An R wrapper for some of the functionality of the Gnu Scientific
    Library."""

    cran = "gsl"

    version('2.1-7.1', sha256='ee98d1382d37ffa77538a90ccdbf44affbf1710a9e66b8ada73fa72e67921985')
    version('2.1-6', sha256='f5d463239693f146617018987687db31b163653708cbae0b730b9b7bed81995c')

    depends_on('r@3.1.0:', type=('build', 'run'))
    depends_on('gsl@2.1:')
