python-pyroute2: update to 0.9.5; add test.sh
authorAlexandru Ardelean <redacted>
Mon, 13 Apr 2026 08:18:41 +0000 (08:18 +0000)
committerAlexandru Ardelean <redacted>
Tue, 14 Apr 2026 07:33:53 +0000 (10:33 +0300)
Bump version 0.7.9 -> 0.9.5.
Add test.sh to verify IPRoute, NDB, and nlmsg imports.

Signed-off-by: Alexandru Ardelean <redacted>
lang/python/python-pyroute2/Makefile
lang/python/python-pyroute2/test.sh [new file with mode: 0644]

index 45996ca1fff3b315a7b25e905591c1d42a66b0df..7763c8b4ec496fce711ffe10b8ac501bcc3bbf1d 100644 (file)
@@ -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
diff --git a/lang/python/python-pyroute2/test.sh b/lang/python/python-pyroute2/test.sh
new file mode 100644 (file)
index 0000000..3e43a17
--- /dev/null
@@ -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
git clone https://git.99rst.org/PROJECT