
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
22 lines
768 B
Python
22 lines
768 B
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 PyPytestMock(PythonPackage):
|
|
"""Thin-wrapper around the mock package for easier use with py.test"""
|
|
|
|
homepage = "https://github.com/pytest-dev/pytest-mock"
|
|
url = "https://pypi.io/packages/source/p/pytest-mock/pytest-mock-1.2.zip"
|
|
|
|
version('1.2', sha256='f78971ed376fcb265255d1e4bb313731b3a1be92d7f3ecb19ea7fedc4a56fd0f')
|
|
|
|
extends('python', ignore=r'bin/*')
|
|
|
|
depends_on('py-setuptools', type='build')
|
|
depends_on('py-pytest@2.7:', type=('build', 'run'))
|
|
depends_on('py-mock', type=('build', 'run'))
|