summaryrefslogtreecommitdiff
path: root/meta-openembedded/meta-python/recipes-devtools/python/python3-ecdsa_0.19.0.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-openembedded/meta-python/recipes-devtools/python/python3-ecdsa_0.19.0.bb')
-rw-r--r--meta-openembedded/meta-python/recipes-devtools/python/python3-ecdsa_0.19.0.bb27
1 files changed, 23 insertions, 4 deletions
diff --git a/meta-openembedded/meta-python/recipes-devtools/python/python3-ecdsa_0.19.0.bb b/meta-openembedded/meta-python/recipes-devtools/python/python3-ecdsa_0.19.0.bb
index 5b4f7eb93f..8e967f9259 100644
--- a/meta-openembedded/meta-python/recipes-devtools/python/python3-ecdsa_0.19.0.bb
+++ b/meta-openembedded/meta-python/recipes-devtools/python/python3-ecdsa_0.19.0.bb
@@ -6,12 +6,31 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=66ffc5e30f76cbb5358fe54b645e5a1d"
PYPI_PACKAGE = "ecdsa"
SRC_URI[sha256sum] = "60eaad1199659900dd0af521ed462b793bbdf867432b3948e87416ae4caf6bf8"
-inherit pypi setuptools3 python3native
+inherit pypi setuptools3 python3native ptest
-RDEPENDS:${PN} += "python3-six python3-gmpy2"
+SRC_URI += " \
+ file://run-ptest \
+"
-BBCLASSEXTEND = "native nativesdk"
+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
+ rm ${D}${PYTHON_SITEPACKAGES_DIR}/ecdsa/test_*.py
}
+
+BBCLASSEXTEND = "native nativesdk"