mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-09-01 16:10:25 +00:00
test_SigningKey_from_pem_pkcs8v2_EdDSA embeds its PEM fixture as an indented triple-quoted string, but der.unpem() only recognizes "-----BEGIN/END-----" markers with no leading whitespace; the indented END marker gets swallowed into the base64 payload instead of being stripped, so it fails with "Incorrect padding" regardless of environment. Upstream test-authoring bug in 0.19.2, not a packaging issue. Signed-off-by: Khem Raj <raj.khem@gmail.com>
35 lines
885 B
BlitzBasic
35 lines
885 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] = "62635b0ac1ca2e027f82122b5b81cb706edc38cd91c63dda28e4f3455a2bf930"
|
|
|
|
CVE_PRODUCT = "python-ecdsa_project:python-ecdsa tlsfuzzer:ecdsa"
|
|
|
|
inherit pypi setuptools3 python3native ptest-python-pytest
|
|
|
|
RDEPENDS:${PN}-ptest += " \
|
|
python3-hypothesis \
|
|
"
|
|
|
|
do_install_ptest:append () {
|
|
install -d ${D}${PTEST_PATH}/tests
|
|
cp -rf ${S}/src/ecdsa/* ${D}${PTEST_PATH}/tests/
|
|
sed -i -e "/--automake/ s/$/ -k 'not test_SigningKey_from_pem_pkcs8v2_EdDSA'/" \
|
|
${D}${PTEST_PATH}/run-ptest
|
|
}
|
|
|
|
RDEPENDS:${PN} += " \
|
|
python3-gmpy2 \
|
|
python3-json \
|
|
python3-six \
|
|
"
|
|
|
|
do_install:append() {
|
|
rm ${D}${PYTHON_SITEPACKAGES_DIR}/ecdsa/test_*.py
|
|
}
|
|
|
|
BBCLASSEXTEND = "native nativesdk"
|