meta-openembedded/meta-python/recipes-devtools/python/python3-ecdsa_0.19.0.bb
alperak cf4bf3f13a
python3-ecdsa: enable ptest and add missing runtime dependency
* Ptest and library example tested on qemux86-64 and qemuarm64

* Add ptest into PTESTS_SLOW_META_PYTHON

Ptest result:
=============

qemux86-64:

Testsuite summary
TOTAL: 1976
PASS: 1972
SKIP: 4
XFAIL: 0
FAIL: 0
XPASS: 0
ERROR: 0
DURATION: 292
END: /usr/lib/python3-ecdsa/ptest
2024-04-12T09:18
STOP: ptest-runner
TOTAL: 1 FAIL: 0

qemuarm64:

Testsuite summary
TOTAL: 1976
PASS: 1972
SKIP: 4
XFAIL: 0
FAIL: 0
XPASS: 0
ERROR: 0
DURATION: 236
END: /usr/lib/python3-ecdsa/ptest
2024-04-12T09:05
STOP: ptest-runner
TOTAL: 1 FAIL: 0

Signed-off-by: alperak <alperyasinak1@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-04-12 08:57:34 -07:00

37 lines
776 B
BlitzBasic

SUMMARY = "ECDSA cryptographic signature library (pure python)"
SECTION = "devel/python"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=66ffc5e30f76cbb5358fe54b645e5a1d"
PYPI_PACKAGE = "ecdsa"
SRC_URI[sha256sum] = "60eaad1199659900dd0af521ed462b793bbdf867432b3948e87416ae4caf6bf8"
inherit pypi setuptools3 python3native ptest
SRC_URI += " \
file://run-ptest \
"
RDEPENDS:${PN}-ptest += " \
python3-hypothesis \
python3-pytest \
python3-unittest-automake-output \
"
do_install_ptest() {
install -d ${D}${PTEST_PATH}/tests
cp -rf ${S}/src/ecdsa/* ${D}${PTEST_PATH}/tests/
}
RDEPENDS:${PN} += " \
python3-gmpy2 \
python3-json \
python3-six \
"
do_install:append() {
rm ${D}${PYTHON_SITEPACKAGES_DIR}/ecdsa/test_*.py
}
BBCLASSEXTEND = "native nativesdk"