summaryrefslogtreecommitdiff
path: root/dev-python/maxminddb
diff options
context:
space:
mode:
authorCrucible <crucible@localhost>2026-10-19 21:49:31 -0500
committerCrucible <crucible@localhost>2026-10-19 21:49:31 -0500
commit7381ef26a3e14a703da91508b2cc8606c34b804d (patch)
tree1ded3c74a64f9591c982f01ed71ab968a8bfad24 /dev-python/maxminddb
parent3b4c7e627726016d50653b6dd2e06020a1915eac (diff)
downloadsrcux-7381ef26a3e14a703da91508b2cc8606c34b804d.tar.gz
srcux-7381ef26a3e14a703da91508b2cc8606c34b804d.tar.xz
srcux-7381ef26a3e14a703da91508b2cc8606c34b804d.zip
Publish srcux candidate 0000000740-20261019-200200
Diffstat (limited to 'dev-python/maxminddb')
-rw-r--r--dev-python/maxminddb/Manifest2
-rw-r--r--dev-python/maxminddb/maxminddb-3.2.0.ebuild55
-rw-r--r--dev-python/maxminddb/metadata.xml12
3 files changed, 69 insertions, 0 deletions
diff --git a/dev-python/maxminddb/Manifest b/dev-python/maxminddb/Manifest
new file mode 100644
index 000000000000..e118e9432127
--- /dev/null
+++ b/dev-python/maxminddb/Manifest
@@ -0,0 +1,2 @@
+DIST maxminddb-3.2.0.tar.gz 92542 BLAKE2B 631dfa55de11903dfb24c97be4ab2d09dc6a5c2caf13a8c89771ebd4ede21f7815613d6e25783bce22608ae3e05b14f61a2d5e1fc39097541c5a70fa95974c23 SHA512 e36342d6adebe5abd549e7dca3253683278e8fe649b2ffc204281796c8b438993205b0e5514756337611ec05894b2444cb4a9873d6c19fb51bc7450a8a4e9542
+DIST maxminddb-tests-0ee49278e35fd7bdf341ac236edbba20de1aceb9.tar.gz 326055 BLAKE2B 8786a57b8004f7b97f9c8d1d1395748ec05daf101df94f3c5624d8cb3a62ddfcaf3d5bdd6e071d387b022d1a55499ab006f9c8f96caca925f6adb9f008f4b8cf SHA512 cf01af714393fe9d1bd8226b39619c3bff1b27031568731df7cb9c4c57d7175c0f32be0cf266a097ed147a6f3199089584caeddb1d3d4d4a9ded8136a169b4d3
diff --git a/dev-python/maxminddb/maxminddb-3.2.0.ebuild b/dev-python/maxminddb/maxminddb-3.2.0.ebuild
new file mode 100644
index 000000000000..9acda0b42a96
--- /dev/null
+++ b/dev-python/maxminddb/maxminddb-3.2.0.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+TESTS_V="0ee49278e35fd7bdf341ac236edbba20de1aceb9"
+
+DISTUTILS_EXT=1
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{13..14} )
+
+inherit distutils-r1
+
+DESCRIPTION="Python MaxMind DB reader extension"
+HOMEPAGE="https://github.com/maxmind/MaxMind-DB-Reader-python"
+SRC_URI="
+ https://github.com/maxmind/MaxMind-DB-Reader-python/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
+ https://github.com/maxmind/MaxMind-DB/archive/${TESTS_V}.tar.gz -> maxminddb-tests-${TESTS_V}.tar.gz
+"
+
+S="${WORKDIR}/MaxMind-DB-Reader-python-${PV}"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND="
+ dev-libs/libmaxminddb
+"
+
+EPYTEST_DESELECT=(
+ "tests/reader_test.py::TestReaderInitialization::test_empty_search_tree_is_accepted"
+ "tests/reader_test.py::TestReaderInitialization::test_invalid_tree_metadata_is_rejected_on_open"
+)
+
+EPYTEST_PLUGINS=()
+distutils_enable_tests pytest
+
+src_prepare() {
+ rmdir "${S}/tests/data" || die
+ ln -s "${WORKDIR}/MaxMind-DB-${TESTS_V}" "${S}/tests/data" || die
+
+ distutils-r1_src_prepare
+}
+
+src_compile() {
+ export MAXMINDDB_USE_SYSTEM_LIBMAXMINDDB=1
+
+ distutils-r1_src_compile
+}
+
+python_test() {
+ cp "${BUILD_DIR}/install$(python_get_sitedir)/maxminddb/extension"*.so maxminddb || die
+ epytest
+}
diff --git a/dev-python/maxminddb/metadata.xml b/dev-python/maxminddb/metadata.xml
new file mode 100644
index 000000000000..20c92c15907c
--- /dev/null
+++ b/dev-python/maxminddb/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://srcux.com/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <name>Pavel Sobolev</name>
+ <email>contact@paveloom.dev</email>
+ </maintainer>
+ <upstream>
+ <bugs-to>https://github.com/maxmind/MaxMind-DB-Reader-python/issues</bugs-to>
+ </upstream>
+ <origin>srcux</origin>
+</pkgmetadata>