spack/var/spack/repos/builtin/packages/r-downloader/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

24 lines
1.0 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 RDownloader(RPackage):
"""Provides a wrapper for the download.file function, making it possible to
download files over HTTPS on Windows, Mac OS X, and other Unix-like
platforms. The 'RCurl' package provides this functionality
(and much more) but can be difficult to install because it must be
compiled with external dependencies. This package has no external
dependencies, so it is much easier to install."""
homepage = "https://cloud.r-project.org/package=downloader"
url = "https://cloud.r-project.org/src/contrib/downloader_0.4.tar.gz"
list_url = "https://cloud.r-project.org/src/contrib/Archive/downloader"
version('0.4', sha256='1890e75b028775154023f2135cafb3e3eed0fe908138ab4f7eff1fc1b47dafab')
depends_on('r-digest', type=('build', 'run'))