python3-pefile: vendor in the recipe

Vendor the recipe from meta-oe, commit 0e6ba2d70844 ("python3-pefile:
upgrade 2023.2.7 -> 2024.8.26") This allows us to build the
esp-qcom-image without adding dependency on the meta-oe. Python-pefile
should be moved from meta-oe to OE-Core, then this recipe can be
dropped.

Suggested-by: Ricardo Salveti <ricardo@foundries.io>
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
This commit is contained in:
Dmitry Baryshkov
2024-09-13 14:14:44 +03:00
parent dc97e1938c
commit dbdbdb798e
2 changed files with 31 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
#!/bin/sh
pytest --automake --ignore=./tests/pefile_test.py

View File

@@ -0,0 +1,28 @@
SUMMARY = "Python PE parsing module"
DESCRIPTION = "A multi-platform Python module to parse and work with Portable Executable (PE) files."
HOMEPAGE = "https://github.com/erocarrera/pefile"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=e34c75178086aca0a17551ffbacaca53"
inherit setuptools3 ptest
SRCREV = "4b3b1e2e568a88d4f1897d694d684f23d9e270c4"
SRC_URI = "git://github.com/erocarrera/pefile;branch=master;protocol=https \
file://run-ptest"
S = "${WORKDIR}/git"
BBCLASSEXTEND = "native nativesdk"
do_install_ptest() {
install -d ${D}${PTEST_PATH}/tests
cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
}
RDEPENDS:${PN} += " \
python3-mmap \
python3-netclient \
python3-stringold \
"
RDEPENDS:${PN}-ptest += "\
python3-pytest \
python3-unittest-automake-output \
"