Files
packages/lang/python/python-bleak/test.sh
Alexandru Ardelean 6bda1b13e6 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>
2026-04-16 19:01:19 +03:00

17 lines
406 B
Bash

[ "$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