summaryrefslogtreecommitdiffstats
path: root/meta-python/recipes-devtools/python/python3-pytest-mock_3.15.1.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-pytest-mock_3.15.1.bb')
-rw-r--r--meta-python/recipes-devtools/python/python3-pytest-mock_3.15.1.bb34
1 files changed, 34 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-pytest-mock_3.15.1.bb b/meta-python/recipes-devtools/python/python3-pytest-mock_3.15.1.bb
new file mode 100644
index 0000000000..835ff0ab3a
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-pytest-mock_3.15.1.bb
@@ -0,0 +1,34 @@
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] = "1849a238f6f396da19762269de72cb1814ab44416fa73a8686deac10b0d87a0f"
12
13inherit pypi python_setuptools_build_meta ptest
14
15PYPI_PACKAGE = "pytest_mock"
16UPSTREAM_CHECK_PYPI_PACKAGE = "${PYPI_PACKAGE}"
17
18DEPENDS += "python3-setuptools-scm-native"
19
20RDEPENDS:${PN}-ptest += " \
21 python3-asyncio \
22 python3-misc \
23 python3-mock \
24 python3-pytest \
25 python3-pytest-asyncio \
26 python3-threading \
27 python3-tox \
28 python3-unittest-automake-output \
29"
30
31do_install_ptest() {
32 install -d ${D}${PTEST_PATH}/tests
33 cp -rf ${S}/tests ${D}${PTEST_PATH}/
34}