From 395e9075acef8fbe755ee4e8a7e58e617543fb80 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Sun, 9 Jun 2024 19:06:20 -0700 Subject: python3-pefile: Move from meta-python to meta-oe - This recipe is needed by newer versions of fwupd from meta-oe - Add ptest support for python3-pefile - Add python3-pefile to PTESTS_FAST_META_OE since tests take < 30s Signed-off-by: Khem Raj --- .../python/python3-pefile/run-ptest | 3 +++ .../python/python3-pefile_2023.2.7.bb | 28 ++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 meta-oe/recipes-devtools/python/python3-pefile/run-ptest create mode 100644 meta-oe/recipes-devtools/python/python3-pefile_2023.2.7.bb (limited to 'meta-oe/recipes-devtools/python') diff --git a/meta-oe/recipes-devtools/python/python3-pefile/run-ptest b/meta-oe/recipes-devtools/python/python3-pefile/run-ptest new file mode 100644 index 0000000000..95ae72306f --- /dev/null +++ b/meta-oe/recipes-devtools/python/python3-pefile/run-ptest @@ -0,0 +1,3 @@ +#!/bin/sh + +pytest --automake --ignore=./tests/pefile_test.py diff --git a/meta-oe/recipes-devtools/python/python3-pefile_2023.2.7.bb b/meta-oe/recipes-devtools/python/python3-pefile_2023.2.7.bb new file mode 100644 index 0000000000..e30b362323 --- /dev/null +++ b/meta-oe/recipes-devtools/python/python3-pefile_2023.2.7.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=38066667888b01d8118ff9cc23da1873" + +inherit setuptools3 ptest +SRCREV = "1ab2807c4eec16041e791d7a6acc68cc23fd5266" +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 \ +" -- cgit v1.2.3-54-g00ecf