meta-openembedded/meta-python/recipes-devtools/python/python3-rapidjson_1.11.bb
David Pierret 4e09bbb4bf python3-rapidjson: add missing ptest dependency
add the pytz module dependency.

Signed-off-by: David Pierret <david.pierret@smile.fr>
Reviewed-by: Yoann Congal <yoann.congal@smile.fr>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-10-20 08:25:14 -07:00

42 lines
1.1 KiB
BlitzBasic

SUMMARY = "Python wrapper around rapidjson"
HOMEPAGE = "https://github.com/python-rapidjson/python-rapidjson"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=4daf3929156304df67003c33274a98bd"
SRC_URI = "git://github.com/python-rapidjson/python-rapidjson.git;protocol=https;branch=master"
SRCREV = "e1b41f64df1705770b7b70d7221a4812909c1d0f"
S = "${WORKDIR}/git"
# Inheriting ptest provides functionality for packaging and installing runtime tests for this recipe
inherit setuptools3 ptest
SETUPTOOLS_BUILD_ARGS += " --rj-include-dir=${RECIPE_SYSROOT}${includedir}"
# run-ptest is a shell script that starts the test suite
SRC_URI += " \
file://run-ptest \
"
DEPENDS += " \
rapidjson \
"
# Adding required python package for the ptest (pytest and pytest->automake report translation)
RDEPENDS:${PN}-ptest += " \
${PYTHON_PN}-pytest \
${PYTHON_PN}-unittest-automake-output \
${PYTHON_PN}-pytz \
"
RDEPENDS:${PN} += " \
${PYTHON_PN}-core \
"
# Installing the test suite on the target
do_install_ptest() {
install -d ${D}${PTEST_PATH}/tests
cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
}