python3-ecdsa: 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-30 21:57:37 +00:00 committed by Khem Raj
parent cc3942a549
commit 3ac7852b9b
No known key found for this signature in database
GPG Key ID: BB053355919D3314
2 changed files with 2 additions and 11 deletions

View File

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

View File

@ -6,19 +6,13 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=66ffc5e30f76cbb5358fe54b645e5a1d"
PYPI_PACKAGE = "ecdsa"
SRC_URI[sha256sum] = "60eaad1199659900dd0af521ed462b793bbdf867432b3948e87416ae4caf6bf8"
inherit pypi setuptools3 python3native ptest
SRC_URI += " \
file://run-ptest \
"
inherit pypi setuptools3 python3native ptest-python-pytest
RDEPENDS:${PN}-ptest += " \
python3-hypothesis \
python3-pytest \
python3-unittest-automake-output \
"
do_install_ptest() {
do_install_ptest:append () {
install -d ${D}${PTEST_PATH}/tests
cp -rf ${S}/src/ecdsa/* ${D}${PTEST_PATH}/tests/
}