1SUMMARY = "MQTT version 3.1/3.1.1 client library" 2LICENSE = "EPL-1.0 | EDL-1.0" 3LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=8e5f264c6988aec56808a3a11e77b913 \ 4 file://edl-v10;md5=c09f121939f063aeb5235972be8c722c \ 5" 6SRCNAME = "paho-mqtt" 7 8inherit pypi python_hatchling python_setuptools_build_meta 9 10SRC_URI[sha256sum] = "12d6e7511d4137555a3f6ea167ae846af2c7357b10bc6fa4f7c3968fc1723834" 11 12PYPI_SRC_URI = "https://files.pythonhosted.org/packages/39/15/0a6214e76d4d32e7f663b109cf71fb22561c2be0f701d67f93950cd40542/paho_mqtt-${PV}.tar.gz" 13 14S = "${WORKDIR}/paho_mqtt-${PV}" 15 16DEPENDS += "python3-pytest-runner-native" 17 18do_install:append() { 19 install -d -m0755 ${D}${datadir}/${BPN}/examples 20 cp --preserve=mode,timestamps -R ${S}/examples/* ${D}${datadir}/${BPN}/examples 21} 22 23PACKAGES =+ "${PN}-examples" 24 25RDEPENDS:${PN}-examples += "${PN} python3-core" 26 27FILES:${PN}-examples = "${datadir}/${BPN}/examples" 28 29RDEPENDS:${PN} = "\ 30 python3-io \ 31 python3-logging \ 32 python3-math \ 33 python3-netclient \ 34 python3-threading \ 35" 36 37BBCLASSEXTEND = "native nativesdk" 38