From 1ac374c2302755ed19efa456a8b51828758695ea Mon Sep 17 00:00:00 2001 From: George Sapkin Date: Fri, 8 May 2026 21:45:59 +0300 Subject: [PATCH] python-meshtastic: add new package Add the Python CLI and API for talking to Meshtastic devices. Co-authored-by: Austin Lane Signed-off-by: George Sapkin --- lang/python/python-meshtastic/Makefile | 54 ++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 lang/python/python-meshtastic/Makefile diff --git a/lang/python/python-meshtastic/Makefile b/lang/python/python-meshtastic/Makefile new file mode 100644 index 00000000000000..a393d0981bfc6e --- /dev/null +++ b/lang/python/python-meshtastic/Makefile @@ -0,0 +1,54 @@ +# SPDX-License-Identifier: GPL-2.0-only + +include $(TOPDIR)/rules.mk + +PKG_NAME:=python-meshtastic +PKG_VERSION:=2.7.8 +PKG_RELEASE:=1 + +PYPI_NAME:=meshtastic +PKG_HASH:=98292e43884e239429056b8a0b31291e169a0b7ededae2c7caa737a8cc9f1a97 + +PKG_MAINTAINER:=Austin Lane , George Sapkin +PKG_LICENSE:=GPL-3.0-only +PKG_LICENSE_FILES:=LICENSE.md + +PKG_BUILD_DEPENDS:=python-poetry-core/host + +include ../pypi.mk +include $(INCLUDE_DIR)/package.mk +include ../python3-package.mk + +define Package/python3-meshtastic + SECTION:=lang + CATEGORY:=Languages + SUBMENU:=Python + TITLE:=Meshtastic Python CLI and API + URL:=https://github.com/meshtastic/python + DEPENDS:= \ + +python3-asyncio \ + +python3-bleak \ + +python3-decimal \ + +python3-light \ + +python3-logging \ + +python3-packaging \ + +python3-protobuf \ + +python3-pypubsub \ + +python3-pyserial \ + +python3-requests \ + +python3-tabulate \ + +python3-yaml +endef + +define Package/python3-meshtastic/description + This small library (and example application) provides an easy API for + sending and receiving messages over mesh radios. It also provides access + to any of the operations/data available in the device user interface or + the Android application. Events are delivered using a publish-subscribe + model, and you can subscribe to only the message types you are + interested in. +endef + +$(eval $(call Py3Package,python3-meshtastic)) +$(eval $(call BuildPackage,python3-meshtastic)) +$(eval $(call BuildPackage,python3-meshtastic-src))