From 6bda1b13e6c2aa7c68caa2a520daaa0982d68834 Mon Sep 17 00:00:00 2001 From: Alexandru Ardelean Date: Thu, 16 Apr 2026 12:25:51 +0000 Subject: [PATCH] python-bleak: update to 3.0.1 - bump 0.21.1 -> 3.0.1 - add +python3-uuid to DEPENDS (new dependency in 3.x) - add test.sh Signed-off-by: Alexandru Ardelean --- lang/python/python-bleak/Makefile | 9 +++++---- lang/python/python-bleak/test.sh | 16 ++++++++++++++++ 2 files changed, 21 insertions(+), 4 deletions(-) create mode 100644 lang/python/python-bleak/test.sh diff --git a/lang/python/python-bleak/Makefile b/lang/python/python-bleak/Makefile index 32550e284f..bc5b857c02 100644 --- a/lang/python/python-bleak/Makefile +++ b/lang/python/python-bleak/Makefile @@ -7,11 +7,11 @@ include $(TOPDIR)/rules.mk PKG_NAME:=python-bleak -PKG_VERSION:=0.21.1 -PKG_RELEASE:=2 +PKG_VERSION:=3.0.1 +PKG_RELEASE:=1 PYPI_NAME:=bleak -PKG_HASH:=ec4a1a2772fb315b992cbaa1153070c7e26968a52b0e2727035f443a1af5c18f +PKG_HASH:=c8ff077519f8c30a972fd0d22f47a54b981184b2f2a0886d02e55acadbc1045d PKG_MAINTAINER:=Quintin Hill PKG_LICENSE:=MIT @@ -30,7 +30,8 @@ define Package/python3-bleak 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-typing-extensions +python3-logging + +python3-dbus-fast +python3-ctypes +python3-typing-extensions +python3-logging \ + +python3-uuid endef define Package/python3-bleak/description diff --git a/lang/python/python-bleak/test.sh b/lang/python/python-bleak/test.sh new file mode 100644 index 0000000000..b1f5006d65 --- /dev/null +++ b/lang/python/python-bleak/test.sh @@ -0,0 +1,16 @@ +[ "$1" = python3-bleak ] || exit 0 + +python3 - << 'EOF' +import bleak +from bleak import BleakScanner, BleakClient +from bleak.backends.device import BLEDevice +from bleak.backends.scanner import AdvertisementData + +assert bleak.__author__ is not None +assert BleakScanner is not None +assert BleakClient is not None +assert BLEDevice is not None +assert AdvertisementData is not None + +print("python3-bleak OK") +EOF