- 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 <redacted>
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 <stuff@quintin.me.uk>
PKG_LICENSE:=MIT
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
--- /dev/null
+[ "$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