diff --git a/lang/python/python-pyroute2/Makefile b/lang/python/python-pyroute2/Makefile index 45996ca1ff..7763c8b4ec 100644 --- a/lang/python/python-pyroute2/Makefile +++ b/lang/python/python-pyroute2/Makefile @@ -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 PKG_LICENSE:=GPL-2.0-or-later Apache-2.0 diff --git a/lang/python/python-pyroute2/test.sh b/lang/python/python-pyroute2/test.sh new file mode 100644 index 0000000000..3e43a173ff --- /dev/null +++ b/lang/python/python-pyroute2/test.sh @@ -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 \ No newline at end of file