diff options
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-gpiod_2.4.1.bb')
| -rw-r--r-- | meta-python/recipes-devtools/python/python3-gpiod_2.4.1.bb | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-gpiod_2.4.1.bb b/meta-python/recipes-devtools/python/python3-gpiod_2.4.1.bb new file mode 100644 index 0000000000..61a3fb929e --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-gpiod_2.4.1.bb | |||
| @@ -0,0 +1,43 @@ | |||
| 1 | SUMMARY = "Python bindings for libgpiod." | ||
| 2 | |||
| 3 | LICENSE = "LGPL-2.1-or-later" | ||
| 4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=4b54a1fd55a448865a0b32d41598759d" | ||
| 5 | |||
| 6 | SRC_URI += "file://run-ptest" | ||
| 7 | |||
| 8 | SRC_URI[sha256sum] = "d29a1e8b2a065f7ed82f00a96009bc1486fc705bb2ad25820a8ae962ec6d7688" | ||
| 9 | |||
| 10 | inherit python_setuptools_build_meta python_pep517 ptest pypi | ||
| 11 | |||
| 12 | DEPENDS += " \ | ||
| 13 | libgpiod \ | ||
| 14 | python3-setuptools-native \ | ||
| 15 | " | ||
| 16 | RDEPENDS:${PN} += " \ | ||
| 17 | libgpiod (>= 2.1) \ | ||
| 18 | python3-datetime \ | ||
| 19 | python3-profile \ | ||
| 20 | " | ||
| 21 | RDEPENDS:${PN}-ptest += " \ | ||
| 22 | libgpiod-gpiosim \ | ||
| 23 | python3-setuptools \ | ||
| 24 | " | ||
| 25 | |||
| 26 | export LINK_SYSTEM_LIBGPIOD = "1" | ||
| 27 | |||
| 28 | do_compile_ptest() { | ||
| 29 | setup_target_config | ||
| 30 | nativepython3 build_tests.py | ||
| 31 | } | ||
| 32 | |||
| 33 | do_install_ptest() { | ||
| 34 | install -d ${D}${PTEST_PATH}/gpiod-test/gpiosim | ||
| 35 | install -d ${D}${PTEST_PATH}/gpiod-test/system | ||
| 36 | install -m 0644 ${S}/tests/*.py ${D}${PTEST_PATH}/gpiod-test/ | ||
| 37 | install -m 0644 ${B}/tests/gpiosim/_ext* ${D}${PTEST_PATH}/gpiod-test/gpiosim | ||
| 38 | install -m 0644 ${S}/tests/gpiosim/*.py ${D}${PTEST_PATH}/gpiod-test/gpiosim | ||
| 39 | install -m 0644 ${B}/tests/system/_ext* ${D}${PTEST_PATH}/gpiod-test/system | ||
| 40 | install -m 0644 ${S}/tests/system/*.py ${D}${PTEST_PATH}/gpiod-test/system | ||
| 41 | } | ||
| 42 | |||
| 43 | INSANE_SKIP:${PN}-ptest += "buildpaths" | ||
