python3-scrypt: 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-17 18:59:36 +00:00 committed by Khem Raj
parent 1f3fae9374
commit 8e56338b50
No known key found for this signature in database
GPG Key ID: BB053355919D3314
2 changed files with 2 additions and 14 deletions

View File

@ -1,3 +0,0 @@
#!/bin/sh
pytest --automake

View File

@ -7,22 +7,13 @@ SRC_URI += "file://0001-py-scrypt-remove-the-hard-coded-include-paths.patch"
SRC_URI[sha256sum] = "a7b637848ed518c1ea2b31a9ecaaa3f49616598d8442de8706cf1f01fbabf0a7"
inherit pypi ptest setuptools3 dos2unix
SRC_URI += " \
file://run-ptest \
"
RDEPENDS:${PN}-ptest += " \
python3-pytest \
python3-unittest-automake-output \
"
inherit pypi ptest-python-pytest setuptools3 dos2unix
RDEPENDS:${PN} += " \
python3-ctypes \
"
do_install_ptest() {
do_install_ptest:append() {
install -d ${D}${PTEST_PATH}/tests
cp -rf ${S}/scrypt/tests/* ${D}${PTEST_PATH}/tests/
}