From f530e19eb4c57d9d80932acc3dc597168f4c89a5 Mon Sep 17 00:00:00 2001 From: Alexandru Ardelean Date: Mon, 13 Apr 2026 08:18:41 +0000 Subject: [PATCH] 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 --- lang/python/python-pyroute2/Makefile | 4 ++-- lang/python/python-pyroute2/test.sh | 15 +++++++++++++++ 2 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 lang/python/python-pyroute2/test.sh 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