From dbdbdb798eb7413fc382b8fe68996740fbe9dc4e Mon Sep 17 00:00:00 2001 From: Dmitry Baryshkov Date: Fri, 13 Sep 2024 14:14:44 +0300 Subject: [PATCH] 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 Signed-off-by: Dmitry Baryshkov --- .../python/python3-pefile/run-ptest | 3 ++ .../python/python3-pefile_2024.8.26.bb | 28 +++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 recipes-vendor-in/python/python3-pefile/run-ptest create mode 100644 recipes-vendor-in/python/python3-pefile_2024.8.26.bb diff --git a/recipes-vendor-in/python/python3-pefile/run-ptest b/recipes-vendor-in/python/python3-pefile/run-ptest new file mode 100644 index 000000000..95ae72306 --- /dev/null +++ b/recipes-vendor-in/python/python3-pefile/run-ptest @@ -0,0 +1,3 @@ +#!/bin/sh + +pytest --automake --ignore=./tests/pefile_test.py diff --git a/recipes-vendor-in/python/python3-pefile_2024.8.26.bb b/recipes-vendor-in/python/python3-pefile_2024.8.26.bb new file mode 100644 index 000000000..87e651d9d --- /dev/null +++ b/recipes-vendor-in/python/python3-pefile_2024.8.26.bb @@ -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 \ +"