mirror of
https://github.com/openwrt/packages.git
synced 2026-04-15 10:51:55 +00:00
python-pyroute2: update to 0.9.5; add test.sh
Bump version 0.7.9 -> 0.9.5. Add test.sh to verify IPRoute, NDB, and nlmsg imports. Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
This commit is contained in:
committed by
Alexandru Ardelean
parent
1c1c7ee5b9
commit
f530e19eb4
@@ -8,11 +8,11 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=python-pyroute2
|
||||
PKG_VERSION:=0.7.9
|
||||
PKG_VERSION:=0.9.5
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PYPI_NAME:=pyroute2
|
||||
PKG_HASH:=b69d82f140b0774317d7ba40f6c5fa1d755098ba3f3eb619982d16e750dc631a
|
||||
PKG_HASH:=a198ccbe545b031b00b10da4b44df33d548db04af944be8107c05a215ba03872
|
||||
|
||||
PKG_MAINTAINER:=Martin Matějek <martin.matejek@nic.cz>
|
||||
PKG_LICENSE:=GPL-2.0-or-later Apache-2.0
|
||||
|
||||
15
lang/python/python-pyroute2/test.sh
Normal file
15
lang/python/python-pyroute2/test.sh
Normal file
@@ -0,0 +1,15 @@
|
||||
#!/bin/sh
|
||||
|
||||
[ "$1" = python3-pyroute2 ] || exit 0
|
||||
|
||||
python3 - << 'EOF'
|
||||
from pyroute2 import IPRoute, NDB
|
||||
from pyroute2.netlink import nlmsg
|
||||
|
||||
# Verify key classes are importable
|
||||
assert callable(IPRoute)
|
||||
assert callable(NDB)
|
||||
assert issubclass(nlmsg, object)
|
||||
|
||||
print("python3-pyroute2 OK")
|
||||
EOF
|
||||
Reference in New Issue
Block a user