From 1c1c7ee5b99beeb2b79fad5b3b35b7322f8a4a3d Mon Sep 17 00:00:00 2001 From: Alexandru Ardelean Date: Mon, 13 Apr 2026 08:18:21 +0000 Subject: [PATCH] python-maxminddb: update to 3.1.1; add test.sh 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 --- lang/python/python-maxminddb/Makefile | 6 +++--- lang/python/python-maxminddb/test.sh | 13 +++++++++++++ 2 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 lang/python/python-maxminddb/test.sh diff --git a/lang/python/python-maxminddb/Makefile b/lang/python/python-maxminddb/Makefile index 92fd5db159..19ce7664f6 100644 --- a/lang/python/python-maxminddb/Makefile +++ b/lang/python/python-maxminddb/Makefile @@ -9,11 +9,11 @@ include $(TOPDIR)/rules.mk PKG_NAME:=python-maxminddb -PKG_VERSION:=2.4.0 +PKG_VERSION:=3.1.1 PKG_RELEASE:=1 PYPI_NAME:=maxminddb -PKG_HASH:=81e54e53408bd502650e5969ccba16780af659ec1db1c44b2c997e4330a5ed96 +PKG_HASH:=b19a938c481518f19a2c534ffdcb3bc59582f0fbbdcf9f81ac9adf912a0af686 PKG_MAINTAINER:=Alexandru Ardelean PKG_LICENSE:=Apache-2.0 @@ -29,7 +29,7 @@ define Package/python3-maxminddb SUBMENU:=Python TITLE:=Reader for the MaxMind DB format URL:=https://www.maxmind.com/ - DEPENDS:=+python3-light +libmaxminddb + DEPENDS:=+python3-light +python3-urllib +libmaxminddb endef define Package/python3-maxminddb/description diff --git a/lang/python/python-maxminddb/test.sh b/lang/python/python-maxminddb/test.sh new file mode 100644 index 0000000000..e0a5b9990f --- /dev/null +++ b/lang/python/python-maxminddb/test.sh @@ -0,0 +1,13 @@ +#!/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 \ No newline at end of file