summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authordarmac <xiaojun2@hisilicon.com>2021-03-07 03:51:53 +0800
committerGitHub <noreply@github.com>2021-03-06 13:51:53 -0600
commite9c399110e7fdc45ed02873adc759cf64bec2513 (patch)
tree48fd8a486a03b562bd405a2e76ba228fec29b67c /var
parent18ba1b8923e924453b88ffe34106850cff633db2 (diff)
downloadspack-e9c399110e7fdc45ed02873adc759cf64bec2513.tar.gz
spack-e9c399110e7fdc45ed02873adc759cf64bec2513.tar.bz2
spack-e9c399110e7fdc45ed02873adc759cf64bec2513.tar.xz
spack-e9c399110e7fdc45ed02873adc759cf64bec2513.zip
Add new package: r-mockery (#22125)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/r-mockery/package.py25
1 files changed, 25 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/r-mockery/package.py b/var/spack/repos/builtin/packages/r-mockery/package.py
new file mode 100644
index 0000000000..7f86483ac2
--- /dev/null
+++ b/var/spack/repos/builtin/packages/r-mockery/package.py
@@ -0,0 +1,25 @@
+# Copyright 2013-2021 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):
+ """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."""
+
+ homepage = "https://github.com/r-lib/mockery"
+ url = "https://cran.r-project.org/src/contrib/mockery_0.4.2.tar.gz"
+ list_url = "https://cran.r-project.org/src/contrib/Archive/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'))