blob: ade137a3850099425d3a413752d10f6da4ede040 [file] [log] [blame]
Andrew Geissler82c905d2020-04-13 13:39:40 -05001SUMMARY = "Serial Port Support for Python"
2LICENSE = "BSD-3-Clause"
Andrew Geisslereef63862021-01-29 15:58:13 -06003LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=520e45e59fc2cf94aa53850f46b86436"
Andrew Geissler82c905d2020-04-13 13:39:40 -05004
Andrew Geisslereef63862021-01-29 15:58:13 -06005SRC_URI[sha256sum] = "3c77e014170dfffbd816e6ffc205e9842efb10be9f58ec16d3e8675b4925cddb"
Andrew Geissler82c905d2020-04-13 13:39:40 -05006
7inherit pypi setuptools3 ptest
Brad Bishop6e60e8b2018-02-01 10:27:11 -05008
Patrick Williams213cb262021-08-07 19:21:33 -05009do_install:append() {
Andrew Geisslereef63862021-01-29 15:58:13 -060010 rm -f ${D}${bindir}/pyserial-miniterm
11 rm -f ${D}${bindir}/pyserial-ports
Andrew Geissler9aee5002022-03-30 16:27:02 +000012 rm -rf ${D}${bindir}/__pycache__
Brad Bishop6e60e8b2018-02-01 10:27:11 -050013 rmdir ${D}${bindir}
14}
Andrew Geissler82c905d2020-04-13 13:39:40 -050015
16PACKAGES =+ "${PN}-java ${PN}-osx ${PN}-win32 ${PN}-tools"
17
Patrick Williams213cb262021-08-07 19:21:33 -050018FILES:${PN}-java = " \
Andrew Geissler82c905d2020-04-13 13:39:40 -050019 ${PYTHON_SITEPACKAGES_DIR}/serial/*java* \
20 ${PYTHON_SITEPACKAGES_DIR}/serial/__pycache__/*java* \
21"
22
Patrick Williams213cb262021-08-07 19:21:33 -050023FILES:${PN}-osx = " \
Andrew Geissler82c905d2020-04-13 13:39:40 -050024 ${PYTHON_SITEPACKAGES_DIR}/serial/tools/*osx* \
25 ${PYTHON_SITEPACKAGES_DIR}/serial/tools/__pycache__/*osx* \
26"
27
Patrick Williams213cb262021-08-07 19:21:33 -050028FILES:${PN}-win32 = " \
Andrew Geissler82c905d2020-04-13 13:39:40 -050029 ${PYTHON_SITEPACKAGES_DIR}/serial/*serialcli* \
30 ${PYTHON_SITEPACKAGES_DIR}/serial/__pycache__/*serialcli* \
31 ${PYTHON_SITEPACKAGES_DIR}/serial/*win32* \
32 ${PYTHON_SITEPACKAGES_DIR}/serial/__pycache__/*win32* \
33 ${PYTHON_SITEPACKAGES_DIR}/serial/tools/miniterm* \
34 ${PYTHON_SITEPACKAGES_DIR}/serial/tools/__pycache__/miniterm* \
35 ${PYTHON_SITEPACKAGES_DIR}/serial/tools/*windows* \
36 ${PYTHON_SITEPACKAGES_DIR}/serial/tools/__pycache__/*windows* \
37"
38
Patrick Williams213cb262021-08-07 19:21:33 -050039RDEPENDS:${PN} = "\
Patrick Williams73bd93f2024-02-20 08:07:48 -060040 python3-fcntl \
41 python3-io \
42 python3-logging \
43 python3-netclient \
44 python3-numbers \
45 python3-shell \
46 python3-stringold \
47 python3-threading \
Andrew Geissler82c905d2020-04-13 13:39:40 -050048"
49
50BBCLASSEXTEND = "native nativesdk"
51
52SRC_URI += " \
53 file://run-ptest \
54"
55
Patrick Williams213cb262021-08-07 19:21:33 -050056RDEPENDS:${PN}-ptest += " \
Patrick Williams73bd93f2024-02-20 08:07:48 -060057 python3-pytest \
58 python3-unittest-automake-output \
Andrew Geissler82c905d2020-04-13 13:39:40 -050059"
60
61do_install_ptest() {
62 install -d ${D}${PTEST_PATH}/test
63 cp -rf ${S}/test/* ${D}${PTEST_PATH}/test/
64}