summaryrefslogtreecommitdiffstats
path: root/meta-python/recipes-devtools/python/python3-pytest-mock_3.14.1.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-pytest-mock_3.14.1.bb')
-rw-r--r--meta-python/recipes-devtools/python/python3-pytest-mock_3.14.1.bb33
1 files changed, 33 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-pytest-mock_3.14.1.bb b/meta-python/recipes-devtools/python/python3-pytest-mock_3.14.1.bb
new file mode 100644
index 0000000000..775b77ccc2
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-pytest-mock_3.14.1.bb
@@ -0,0 +1,33 @@
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] = "159e9edac4c451ce77a5cdb9fc5d1100708d2dd4ba3c3df572f14097351af80e"
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-asyncio \
21 python3-misc \
22 python3-mock \
23 python3-pytest \
24 python3-pytest-asyncio \
25 python3-threading \
26 python3-tox \
27 python3-unittest-automake-output \
28"
29
30do_install_ptest() {
31 install -d ${D}${PTEST_PATH}/tests
32 cp -rf ${S}/tests ${D}${PTEST_PATH}/
33}