Files
packages/lang/python/python-pyroute2/test.sh
Alexandru Ardelean f530e19eb4 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>
2026-04-14 10:33:53 +03:00

15 lines
287 B
Bash

#!/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