Files
poky/meta/recipes-devtools/python/python3-jsonpointer_2.3.bb
Ross Burton 10cde1b2ad python3-jsonpointer: rewrite testing
The tests installed by jsonpointer use unittest not pytest, so update
the dependencies.

Use the unittest runner in python3-unittest-automake-output to get the
correct output.

Apply a patch so the test suite doesn't run twice.

(From OE-Core rev: 595086756c6f24762e08cde9f9ed3e1056976d98)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-03-21 22:42:05 +00:00

31 lines
692 B
BlitzBasic

SUMMARY = "Resolve JSON Pointers in Python"
HOMEPAGE = "https://github.com/stefankoegl/python-json-pointer"
LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=32b15c843b7a329130f4e266a281ebb3"
inherit pypi ptest setuptools3
SRC_URI += "file://0001-Clean-up-test-runner.patch"
SRC_URI[sha256sum] = "97cba51526c829282218feb99dab1b1e6bdf8efd1c43dc9d57be093c0d69c99a"
RDEPENDS:${PN} += " \
${PYTHON_PN}-json \
"
BBCLASSEXTEND = "native nativesdk"
SRC_URI += " \
file://run-ptest \
"
RDEPENDS:${PN}-ptest += " \
${PYTHON_PN}-doctest \
${PYTHON_PN}-unittest \
${PYTHON_PN}-unittest-automake-output \
"
do_install_ptest() {
cp -f ${S}/tests.py ${D}${PTEST_PATH}/
}