Skip to content

Commit

Permalink
Merge pull request #649 from lumag/vendor-pefile
Browse files Browse the repository at this point in the history
python3-pefile: vendor in the recipe
  • Loading branch information
lumag authored Sep 14, 2024
2 parents dc97e19 + dbdbdb7 commit d8fba24
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
3 changes: 3 additions & 0 deletions recipes-vendor-in/python/python3-pefile/run-ptest
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

pytest --automake --ignore=./tests/pefile_test.py
28 changes: 28 additions & 0 deletions recipes-vendor-in/python/python3-pefile_2024.8.26.bb
Original file line number Diff line number Diff line change
@@ -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 \
"

0 comments on commit d8fba24

Please sign in to comment.