Files
poky/meta/recipes-devtools/python/python3-license-expression_30.4.1.bb
Ross Burton 837d41f078 python3-license-expression: fix ptest installation
This recipe was overriding do_install_ptest which is provided by the
ptest-python-pytest class, so there was no tests or run-ptest installed.

Use an append override, and minimise the installed files: use a symlink
so that scancode-licensedb-index.json is found and install setup.cfg.

(From OE-Core rev: 164876d33af9edaac37a686726727d3bc3d10aa9)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2025-02-18 11:56:03 +00:00

31 lines
955 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=86d3f3a95c324c9479bd8986968f4327"
SRC_URI[sha256sum] = "9f02105f9e0fcecba6a85dfbbed7d94ea1c3a70cf23ddbfb5adf3438a6f6fce0"
inherit pypi ptest-python-pytest python_setuptools_build_meta
PYPI_PACKAGE = "license_expression"
UPSTREAM_CHECK_PYPI_PACKAGE = "${PYPI_PACKAGE}"
DEPENDS += "python3-setuptools-scm-native"
RDEPENDS:${PN} += "\
python3-booleanpy \
python3-core \
python3-json \
python3-stringold \
python3-logging \
"
BBCLASSEXTEND = "native nativesdk"
do_install_ptest:append() {
# The tests need some files from the source tree
install -d ${D}${PTEST_PATH}/src
ln -s ${PYTHON_SITEPACKAGES_DIR}/license_expression/ ${D}${PTEST_PATH}/src/
install -m644 ${S}/setup.cfg ${D}${PTEST_PATH}/
}