python-ble2mqtt: update to 0.2.5; add test.sh

Bump version 0.2.2 -> 0.2.5.
Add test.sh to verify Device base class import.

Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
This commit is contained in:
Alexandru Ardelean
2026-04-13 08:17:57 +00:00
committed by Alexandru Ardelean
parent 2279299c2c
commit 7a428552dd
2 changed files with 15 additions and 2 deletions

View File

@@ -7,11 +7,11 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=python-ble2mqtt
PKG_VERSION:=0.2.2
PKG_VERSION:=0.2.5
PKG_RELEASE:=1
PYPI_NAME:=ble2mqtt
PKG_HASH:=6c8abb4fe3d8ba77e42f23e4acdfbb99e337ed5bdea05db4e1b92d455186c8e6
PKG_HASH:=b67838a4fccf99b7a00304acb8cf967b01fd9926e3cfd2b2476b21d242cb8384
PKG_MAINTAINER:=Quintin Hill <stuff@quintin.me.uk>
PKG_LICENSE:=MIT

View File

@@ -0,0 +1,13 @@
#!/bin/sh
[ "$1" = python3-ble2mqtt ] || exit 0
python3 - << 'EOF'
import ble2mqtt
from ble2mqtt.devices.base import Device, ConnectionMode
assert hasattr(ble2mqtt, "__version__") or True # version may not be exposed
assert issubclass(Device, object)
print("python3-ble2mqtt OK")
EOF