mirror of
https://github.com/openwrt/packages.git
synced 2026-04-15 10:51:55 +00:00
python-zeroconf: update to 0.148.0; add test.sh
Bump version 0.131.0 -> 0.148.0. Add test.sh to verify ServiceInfo construction and attribute access. Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
This commit is contained in:
committed by
Alexandru Ardelean
parent
0d705d716a
commit
c89332ea25
@@ -8,11 +8,11 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=python-zeroconf
|
PKG_NAME:=python-zeroconf
|
||||||
PKG_VERSION:=0.131.0
|
PKG_VERSION:=0.148.0
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
PYPI_NAME:=zeroconf
|
PYPI_NAME:=zeroconf
|
||||||
PKG_HASH:=90c431e99192a044a5e0217afd7ca0ca9824af93190332e6f7baf4da5375f331
|
PKG_HASH:=03fcca123df3652e23d945112d683d2f605f313637611b7d4adf31056f681702
|
||||||
|
|
||||||
PKG_MAINTAINER:=Josef Schlehofer <pepe.schlehofer@gmail.com>
|
PKG_MAINTAINER:=Josef Schlehofer <pepe.schlehofer@gmail.com>
|
||||||
PKG_LICENSE:=LGPL-2.1-or-later
|
PKG_LICENSE:=LGPL-2.1-or-later
|
||||||
|
|||||||
20
lang/python/python-zeroconf/test.sh
Normal file
20
lang/python/python-zeroconf/test.sh
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
[ "$1" = python3-zeroconf ] || exit 0
|
||||||
|
|
||||||
|
python3 - << 'EOF'
|
||||||
|
from zeroconf import Zeroconf, ServiceInfo, ServiceBrowser
|
||||||
|
import socket
|
||||||
|
|
||||||
|
# Verify core classes are importable and instantiable
|
||||||
|
info = ServiceInfo(
|
||||||
|
"_http._tcp.local.",
|
||||||
|
"Test._http._tcp.local.",
|
||||||
|
addresses=[socket.inet_aton("127.0.0.1")],
|
||||||
|
port=80,
|
||||||
|
)
|
||||||
|
assert info.port == 80
|
||||||
|
assert info.type == "_http._tcp.local."
|
||||||
|
|
||||||
|
print("python3-zeroconf OK")
|
||||||
|
EOF
|
||||||
Reference in New Issue
Block a user