summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/r-mockery/package.py
blob: b08d3327db523391651811dbb3abd6596f62f44d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# 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 RMockery(RPackage):
    """Mocking Library for R.

    The two main functionalities of this package are creating mock objects
    (functions) and selectively intercepting calls to a given function that
    originate in some other function. It can be used with any testing framework
    available for R. Mock objects can be injected with either this package's
    own stub() function or a similar with_mock() facility present in the
    'testthat' package."""

    cran = "mockery"

    version('0.4.2', sha256='988e249c366ee7faf277de004084cf5ca24b5c8a8c6e3842f1b1362ce2f7ea9b')
    version('0.4.1', sha256='959d83f8b21e9a89c06c73f310356790c2d63d5ba39b2b60c6777a4eb33909c1')
    version('0.4.0', sha256='cecbd865b67d8d29b47d6c931e386189625d5885328a2931a65ade3ff9bc8e7b')
    version('0.3.0', sha256='6d23461ce6ffdc707ac2fcef58c5942587fab4b2a794a3085ac858fe1beeaff9')

    depends_on('r-testthat', type=('build', 'run'))