mirror of
https://github.com/openwrt/packages.git
synced 2026-05-31 15:02:01 +08:00
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 <alex@shruggie.ro>
This commit is contained in:
committed by
Alexandru Ardelean
parent
6defd87092
commit
6bda1b13e6
@@ -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 <stuff@quintin.me.uk>
|
||||
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
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user