meta-openembedded/meta-python/recipes-devtools/python/python3-license-expression_21.6.14.bb
Trevor Gamblin 1b358be2b8 python3-license-expression: add ptest artifacts
The python3-license-expression ptest is failing because it requires the
contents of the src/ directory from the repo/tarball. Copy this content
to the image when installing the ptest so that it has what it needs.

Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
2021-08-27 13:08:27 -07:00

36 lines
840 B
BlitzBasic

SUMMARY = "Utility library to parse, compare, simplify and normalize license expressions"
HOMEPAGE = "https://github.com/nexB/license-expression"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://apache-2.0.LICENSE;md5=9429839cdc4b292ff46e88b524c6e0c9"
SRC_URI[sha256sum] = "9de87a427c9a449eee7913472fb9ed03b63036295547369fdbf95f76a8b924b2"
inherit pypi ptest setuptools3
DEPENDS += "\
${PYTHON_PN}-setuptools-scm-native \
${PYTHON_PN}-wheel-native \
"
RDEPENDS:${PN} += "\
${PYTHON_PN}-booleanpy \
"
BBCLASSEXTEND = "native nativesdk"
SRC_URI += " \
file://run-ptest \
"
RDEPENDS:${PN}-ptest += " \
${PYTHON_PN}-pytest \
"
do_install_ptest() {
install -d ${D}${PTEST_PATH}/tests
install -d ${D}${PTEST_PATH}/src
cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
cp -rf ${S}/src/* ${D}${PTEST_PATH}/src/
}