summaryrefslogtreecommitdiffstats
path: root/meta-python/recipes-devtools/python/python3-pytest-mock_3.14.0.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-pytest-mock_3.14.0.bb')
-rw-r--r--meta-python/recipes-devtools/python/python3-pytest-mock_3.14.0.bb32
1 files changed, 32 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-pytest-mock_3.14.0.bb b/meta-python/recipes-devtools/python/python3-pytest-mock_3.14.0.bb
new file mode 100644
index 0000000000..b968cf1cd4
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-pytest-mock_3.14.0.bb
@@ -0,0 +1,32 @@
1SUMMARY = "Thin-wrapper around the mock package for easier use with pytest"
2HOMEPAGE = "https://github.com/pytest-dev/pytest-mock/"
3LICENSE = "MIT"
4LIC_FILES_CHKSUM = " \
5 file://LICENSE;md5=b2ddb1e69238461b7e4ef2a84d874109 \
6"
7
8SRC_URI += " \
9 file://run-ptest \
10"
11SRC_URI[sha256sum] = "2719255a1efeceadbc056d6bf3df3d1c5015530fb40cf347c0f9afac88410bd0"
12
13inherit pypi python_setuptools_build_meta ptest
14
15PYPI_PACKAGE = "pytest-mock"
16
17DEPENDS += "python3-setuptools-scm-native"
18
19RDEPENDS:${PN}-ptest += " \
20 python3-misc \
21 python3-mock \
22 python3-pytest \
23 python3-pytest-asyncio \
24 python3-threading \
25 python3-tox \
26 python3-unittest-automake-output \
27"
28
29do_install_ptest() {
30 install -d ${D}${PTEST_PATH}/tests
31 cp -rf ${S}/tests ${D}${PTEST_PATH}/
32}