python3-sqlparse: update recipe to use the ptest-python-pytest class

Signed-off-by: Derek Straka <derek@asterius.io>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Derek Straka
2025-01-10 20:57:29 +00:00
committed by Khem Raj
parent 5dd9806ac2
commit 9e896bd9ae
2 changed files with 1 additions and 15 deletions

View File

@@ -4,27 +4,16 @@ SECTION = "devel/python"
LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://LICENSE;md5=2b136f573f5386001ea3b7b9016222fc"
SRC_URI:append = " \
file://run-ptest \
"
SRC_URI[sha256sum] = "09f67787f56a0b16ecdbde1bfc7f5d9c3371ca683cfeaa8e6ff60b4807ec9272"
export BUILD_SYS
export HOST_SYS
inherit pypi ptest python_hatchling
inherit pypi ptest-python-pytest python_hatchling
RDEPENDS:${PN}-ptest += "\
python3-mypy \
python3-pytest \
python3-unittest-automake-output \
python3-unixadmin \
"
do_install_ptest() {
install -d ${D}${PTEST_PATH}/tests
cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
}
BBCLASSEXTEND = "native nativesdk"