mirror of
https://github.com/openwrt/packages.git
synced 2026-04-15 19:02:09 +00:00
Bump version 2.4.0 -> 3.1.1. Add python3-urllib to DEPENDS (required by new version). Add test.sh to verify open_database and InvalidDatabaseError imports. Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
13 lines
262 B
Bash
13 lines
262 B
Bash
#!/bin/sh
|
|
|
|
[ "$1" = python3-maxminddb ] || exit 0
|
|
|
|
python3 - << 'EOF'
|
|
import maxminddb
|
|
from maxminddb import open_database, InvalidDatabaseError
|
|
|
|
assert callable(open_database)
|
|
assert issubclass(InvalidDatabaseError, Exception)
|
|
|
|
print("python3-maxminddb OK")
|
|
EOF |