@@ -4,13 +4,14 @@ LICENSE = "LGPL-2.1-or-later"
SECTION = "devel/python"
LIC_FILES_CHKSUM = "file://LICENSE;md5=4fbd65380cdd255951079008b364516c"
-SRC_URI[sha256sum] = "8d51894abb38355bf14881088bb97f01fe4cb5b14ebe22f66d6297668c7e1a74"
+SRC_URI = "git://github.com/miurahr/py7zr.git;branch=master;protocol=https"
+SRCREV = "e278bc05cc937ecd1ee62bc6a058db3a21e66614"
CVE_PRODUCT = "py7zr"
-inherit pypi python_setuptools_build_meta
+inherit python_setuptools_build_meta ptest-python-pytest
-DEPENDS += " \
+DEPENDS += "\
python3-setuptools-scm-native \
python3-toml-native \
python3-wheel-native \
@@ -29,3 +30,16 @@ RDEPENDS:${PN} += "\
python3-core \
python3-threading \
"
+
+RDEPENDS:${PN}-ptest += "\
+ python3-texttable \
+ python3-requests \
+ python3-pytest-httpserver \
+ python3-psutil \
+"
+
+do_install_ptest:append() {
+ # Remove liblzma pre-stripped binaries because they are not
+ # neeed and to avoid the already-stripped QA errors
+ rm -rf ${D}${PTEST_PATH}/tests/data/lib
+}
- Inherit ptest-python-pytest and include tests for py7zr. - Switch from PyPI to using the source code from GitHub to download the tests. - Remove liblzma pre-stripped binaries because they are not neeed and to avoid the already-stripped QA errors. - Add python3-pytest-httpserver and other runtime dependencies for the tests. This work was sponsored by GOVCERT.LU. Signed-off-by: Leon Anavi <leon.anavi@konsulko.com> --- .../python/python3-py7zr_1.1.3.bb | 20 ++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-)