summaryrefslogtreecommitdiffstats
path: root/meta-python/recipes-devtools/python/python3-smpplib_2.1.0.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-smpplib_2.1.0.bb')
-rw-r--r--meta-python/recipes-devtools/python/python3-smpplib_2.1.0.bb17
1 files changed, 16 insertions, 1 deletions
diff --git a/meta-python/recipes-devtools/python/python3-smpplib_2.1.0.bb b/meta-python/recipes-devtools/python/python3-smpplib_2.1.0.bb
index 948af58aab..15b326bad4 100644
--- a/meta-python/recipes-devtools/python/python3-smpplib_2.1.0.bb
+++ b/meta-python/recipes-devtools/python/python3-smpplib_2.1.0.bb
@@ -6,4 +6,19 @@ LIC_FILES_CHKSUM = "file://README.md;md5=56a03d0ce7e492d4b9487b8aae957efe"
6PYPI_PACKAGE = "smpplib" 6PYPI_PACKAGE = "smpplib"
7SRC_URI[sha256sum] = "df4139a279b35fbb42a58f2a254a9c6daf362b04a7f94e208dc120e0b8a3fd4b" 7SRC_URI[sha256sum] = "df4139a279b35fbb42a58f2a254a9c6daf362b04a7f94e208dc120e0b8a3fd4b"
8 8
9inherit pypi setuptools3 9inherit pypi setuptools3 ptest
10
11SRC_URI += " \
12 file://run-ptest \
13"
14
15RDEPENDS_${PN}-ptest += " \
16 ${PYTHON_PN}-pytest \
17 ${PYTHON_PN}-unittest \
18"
19
20do_install_ptest() {
21 install -d ${D}${PTEST_PATH}/tests
22 cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
23 sed -i 's/mock/unittest.mock/g' ${D}${PTEST_PATH}/tests/*
24}