Bump version 0.7.9 -> 0.9.5.
Add test.sh to verify IPRoute, NDB, and nlmsg imports.
Signed-off-by: Alexandru Ardelean <redacted>
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
--- /dev/null
+#!/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