summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-devtools/python
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2024-06-09 19:06:20 -0700
committerKhem Raj <raj.khem@gmail.com>2024-06-09 22:43:41 -0700
commit395e9075acef8fbe755ee4e8a7e58e617543fb80 (patch)
treee99e454eb7e1137c130f3998be975575da0f064b /meta-oe/recipes-devtools/python
parent42b87cb03280cc3201df67cccf193c891018f519 (diff)
downloadmeta-openembedded-395e9075acef8fbe755ee4e8a7e58e617543fb80.tar.gz
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 <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-devtools/python')
-rw-r--r--meta-oe/recipes-devtools/python/python3-pefile/run-ptest3
-rw-r--r--meta-oe/recipes-devtools/python/python3-pefile_2023.2.7.bb28
2 files changed, 31 insertions, 0 deletions
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 @@
1#!/bin/sh
2
3pytest --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 @@
1SUMMARY = "Python PE parsing module"
2DESCRIPTION = "A multi-platform Python module to parse and work with Portable Executable (PE) files."
3HOMEPAGE = "https://github.com/erocarrera/pefile"
4LICENSE = "MIT"
5LIC_FILES_CHKSUM = "file://LICENSE;md5=38066667888b01d8118ff9cc23da1873"
6
7inherit setuptools3 ptest
8SRCREV = "1ab2807c4eec16041e791d7a6acc68cc23fd5266"
9SRC_URI = "git://github.com/erocarrera/pefile;branch=master;protocol=https \
10 file://run-ptest"
11S = "${WORKDIR}/git"
12
13BBCLASSEXTEND = "native nativesdk"
14
15do_install_ptest() {
16 install -d ${D}${PTEST_PATH}/tests
17 cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
18}
19
20RDEPENDS:${PN} += " \
21 python3-mmap \
22 python3-netclient \
23 python3-stringold \
24"
25RDEPENDS:${PN}-ptest += "\
26 python3-pytest \
27 python3-unittest-automake-output \
28"