From 76b0a3c1ec7300fefbbf205cf7b97a8b04115bbf Mon Sep 17 00:00:00 2001 From: Quintin Hill Date: Fri, 10 Mar 2023 22:48:06 +0000 Subject: [PATCH 1/4] python-aio-mqtt-mod: add package This package is a dependency of ble2mqtt. Signed-off-by: Quintin Hill --- lang/python/python-aio-mqtt-mod/Makefile | 39 ++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 lang/python/python-aio-mqtt-mod/Makefile diff --git a/lang/python/python-aio-mqtt-mod/Makefile b/lang/python/python-aio-mqtt-mod/Makefile new file mode 100644 index 000000000..b5afab5cc --- /dev/null +++ b/lang/python/python-aio-mqtt-mod/Makefile @@ -0,0 +1,39 @@ +# +# Copyright (C) 2023 +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# +include $(TOPDIR)/rules.mk + +PKG_NAME:=python-aio-mqtt-mod +PKG_VERSION:=0.3.3 +PKG_RELEASE:=1 + +PYPI_NAME:=aio-mqtt-mod +PKG_HASH:=2271f8a2fd6c6aea914896dc3d4dd6e384cd0da405b06dcfa566bd01f968bf9d + +PKG_MAINTAINER:=Quintin Hill +PKG_LICENSE:=Apache-2.0 +PKG_LICENSE_FILES:=LICENSE + +include ../pypi.mk +include $(INCLUDE_DIR)/package.mk +include ../python3-package.mk + +define Package/python3-aio-mqtt-mod + SECTION:=lang + CATEGORY:=Languages + SUBMENU:=Python + TITLE:=Asynchronous MQTT client + URL:=https://github.com/devbis/aio-mqtt + DEPENDS:=+python3-light +python3-asyncio +python3-openssl +endef + +define Package/python3-aio-mqtt-mod/description + Asynchronous MQTT client for 3.1.1 protocol version (mod). +endef + +$(eval $(call Py3Package,python3-aio-mqtt-mod)) +$(eval $(call BuildPackage,python3-aio-mqtt-mod)) +$(eval $(call BuildPackage,python3-aio-mqtt-mod-src)) From 3c6a6746b0da7f084a2f7e21c31cad6d898ecc46 Mon Sep 17 00:00:00 2001 From: Quintin Hill Date: Fri, 10 Mar 2023 22:49:03 +0000 Subject: [PATCH 2/4] python-dbus-fast: add package This package is a dependency of bleak. Building and installing this package via pip on a router is not difficult and the build crashes when memory is exhausted. Signed-off-by: Quintin Hill --- lang/python/python-dbus-fast/Makefile | 43 +++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 lang/python/python-dbus-fast/Makefile diff --git a/lang/python/python-dbus-fast/Makefile b/lang/python/python-dbus-fast/Makefile new file mode 100644 index 000000000..ad6b0b40b --- /dev/null +++ b/lang/python/python-dbus-fast/Makefile @@ -0,0 +1,43 @@ +# +# Copyright (C) 2023 +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# +include $(TOPDIR)/rules.mk + +PKG_NAME:=python-dbus-fast +PKG_VERSION:=1.84.2 +PKG_RELEASE:=1 + +PYPI_NAME:=dbus-fast +PYPI_SOURCE_NAME:=dbus_fast +PKG_HASH:=62b00b85c5835bff1d7ab5b12d494e588d92612bedbd7ca86176861729b8e4bc + +PKG_MAINTAINER:=Quintin Hill +PKG_LICENSE:=MIT +PKG_LICENSE_FILES:=LICENSE + +include ../pypi.mk +include $(INCLUDE_DIR)/package.mk +include ../python3-package.mk + +define Package/python3-dbus-fast + SECTION:=lang + CATEGORY:=Languages + SUBMENU:=Python + TITLE:=A faster version of dbus-next + URL:=https://github.com/Bluetooth-Devices/dbus-fast + DEPENDS:=+python3-light +python3-async-timeout +python3-asyncio \ + +python3-logging +python3-urllib +python3-xml +endef + +define Package/python3-dbus-fast/description + dbus-fast is a Python library for DBus that aims to be a performant fully + featured high level library primarily geared towards integration of + applications into Linux desktop and mobile environments. +endef + +$(eval $(call Py3Package,python3-dbus-fast)) +$(eval $(call BuildPackage,python3-dbus-fast)) +$(eval $(call BuildPackage,python3-dbus-fast-src)) From 661f14c46ed43a3855f9fa4f94cd63cd031c1662 Mon Sep 17 00:00:00 2001 From: Quintin Hill Date: Mon, 20 Mar 2023 13:32:49 +0000 Subject: [PATCH 3/4] python-bleak: add package This package is a dependency of ble2mqtt. python-asyncio is a runtime dependency of this package. Signed-off-by: Quintin Hill --- lang/python/python-bleak/Makefile | 43 +++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 lang/python/python-bleak/Makefile diff --git a/lang/python/python-bleak/Makefile b/lang/python/python-bleak/Makefile new file mode 100644 index 000000000..b97d65065 --- /dev/null +++ b/lang/python/python-bleak/Makefile @@ -0,0 +1,43 @@ +# +# Copyright (C) 2023 +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# +include $(TOPDIR)/rules.mk + +PKG_NAME:=python-bleak +PKG_VERSION:=0.20.0 +PKG_RELEASE:=1 + +PYPI_NAME:=bleak +PKG_HASH:=7f6fe69454ad5d4c0ab05ae4a9aa1aabd6926d7128eab2fac4ef8a58a72999ee + +PKG_MAINTAINER:=Quintin Hill +PKG_LICENSE:=MIT +PKG_LICENSE_FILES:=LICENSE + +include ../pypi.mk +include $(INCLUDE_DIR)/package.mk +include ../python3-package.mk + +define Package/python3-bleak + SECTION:=lang + CATEGORY:=Languages + SUBMENU:=Python + TITLE:=Bluetooth Low Energy platform Agnostic Klient + URL:=https://github.com/hbldh/bleak + DEPENDS:=+python3-light +python3-async-timeout +python3-asyncio \ + +python3-dbus-fast +python3-ctypes +python3-logging +endef + +define Package/python3-bleak/description + Bleak is an acronym for Bluetooth Low Energy platform Agnostic Klient. + Bleak is a GATT client software, capable of connecting to BLE devices acting + as GATT servers. It is designed to provide a asynchronous, cross-platform + Python API to connect and communicate with e.g. sensors. +endef + +$(eval $(call Py3Package,python3-bleak)) +$(eval $(call BuildPackage,python3-bleak)) +$(eval $(call BuildPackage,python3-bleak-src)) From 2af786a48dc3e60481f4d37dfa86400ddc28fca7 Mon Sep 17 00:00:00 2001 From: Quintin Hill Date: Fri, 10 Mar 2023 22:51:17 +0000 Subject: [PATCH 4/4] python-ble2mqtt: add package This package allows interfacing between BLE sensors and MQTT. Signed-off-by: Quintin Hill --- lang/python/python-ble2mqtt/Makefile | 40 ++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 lang/python/python-ble2mqtt/Makefile diff --git a/lang/python/python-ble2mqtt/Makefile b/lang/python/python-ble2mqtt/Makefile new file mode 100644 index 000000000..9fff9beba --- /dev/null +++ b/lang/python/python-ble2mqtt/Makefile @@ -0,0 +1,40 @@ +# +# Copyright (C) 2023 +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# +include $(TOPDIR)/rules.mk + +PKG_NAME:=python-ble2mqtt +PKG_VERSION:=0.1.5 +PKG_RELEASE:=1 + +PYPI_NAME:=ble2mqtt +PKG_HASH:=0015cae0c36badb48cbd4a1c8b1a8029e45ab0891a95363fe00624c2629b4510 + +PKG_MAINTAINER:=Quintin Hill +PKG_LICENSE:=MIT +PKG_LICENSE_FILES:=LICENSE + +include ../pypi.mk +include $(INCLUDE_DIR)/package.mk +include ../python3-package.mk + +define Package/python3-ble2mqtt + SECTION:=lang + CATEGORY:=Languages + SUBMENU:=Python + TITLE:=Bluetooth to MQTT bridge + URL:=https://github.com/devbis/ble2mqtt/ + DEPENDS:=+python3-light +python3-aio-mqtt-mod +python3-asyncio +python3-bleak +python3-logging +endef + +define Package/python3-ble2mqtt/description + Bluetooth to MQTT bridge, add your bluetooth-capable (including controllable) + devices to your smart home +endef + +$(eval $(call Py3Package,python3-ble2mqtt)) +$(eval $(call BuildPackage,python3-ble2mqtt)) +$(eval $(call BuildPackage,python3-ble2mqtt-src))