spack/var/spack/repos/builtin/packages/r-stringr/package.py
Todd Gamblin 62927654dd checksums: use sha256 checksums everywhere
We'd like to use a consistent checksum scheme everywhere so that we can:

    a) incorporate archive checksums into our specs and have a
       consistent hashing algorithm across all specs.

    b) index mirrors with a consistent type of checksum, and not one that
       is dependent on how spack packages are written.

- [x] convert existing md5, sha224, sha512, sha1 checksums to sha256
2019-10-12 07:19:43 -07:00

30 lines
1.5 KiB
Python

# 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 RStringr(RPackage):
"""A consistent, simple and easy to use set of wrappers around the
fantastic 'stringi' package. All function and argument names (and
positions) are consistent, all functions deal with "NA"'s and zero length
vectors in the same way, and the output from one function is easy to feed
into the input of another."""
homepage = "https://cloud.r-project.org/package=stringr"
url = "https://cloud.r-project.org/src/contrib/stringr_1.1.0.tar.gz"
list_url = "https://cloud.r-project.org/src/contrib/Archive/stringr"
version('1.4.0', sha256='87604d2d3a9ad8fd68444ce0865b59e2ffbdb548a38d6634796bbd83eeb931dd')
version('1.3.1', sha256='7a8b8ea038e45978bd797419b16793f44f10c5355ad4c64b74d15276fef20343')
version('1.2.0', sha256='61d0b30768bbfd7c0bb89310e2de5b7b457ac504538acbcca50374b46b16129a')
version('1.1.0', sha256='ccb1f0e0f3e9524786f6cbae705c42eedf3874d0e641564e5e00517d892c5a33')
version('1.0.0', sha256='f8267db85b83c0fc8904009719c93296934775b0d6890c996ec779ec5336df4a')
depends_on('r@3.1:', type=('build', 'run'))
depends_on('r-stringi@1.1.7:', type=('build', 'run'))
depends_on('r-magrittr', type=('build', 'run'))
depends_on('r-glue@1.2.0:', when='@1.3.0:', type=('build', 'run'))