summaryrefslogtreecommitdiff
path: root/dev-python
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2024-07-16 18:24:24 +0200
committerMichał Górny <mgorny@gentoo.org>2024-07-22 17:09:34 +0200
commit04259285bb899b61fba51d9b211f0653d03912f8 (patch)
tree89227dfadd6b37fcb38eef7d02d01d3c89f772ba /dev-python
parent621ed5f127a2f00a9c64b964b0d80cd12b6bbae8 (diff)
downloadgentoo-04259285bb899b61fba51d9b211f0653d03912f8.tar.gz
gentoo-04259285bb899b61fba51d9b211f0653d03912f8.tar.bz2
gentoo-04259285bb899b61fba51d9b211f0653d03912f8.zip
dev-python/miniupnpc: Enable import-check testing
Closes: https://github.com/gentoo/gentoo/pull/37187 Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python')
-rw-r--r--dev-python/miniupnpc/miniupnpc-2.2.8-r1.ebuild52
1 files changed, 52 insertions, 0 deletions
diff --git a/dev-python/miniupnpc/miniupnpc-2.2.8-r1.ebuild b/dev-python/miniupnpc/miniupnpc-2.2.8-r1.ebuild
new file mode 100644
index 000000000000..d6d330eae5f9
--- /dev/null
+++ b/dev-python/miniupnpc/miniupnpc-2.2.8-r1.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_EXT=1
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{10..13} pypy3 )
+
+inherit distutils-r1 verify-sig
+
+MY_P=${P/python-}
+DESCRIPTION="Python bindings for UPnP client library"
+HOMEPAGE="
+ http://miniupnp.free.fr/
+ https://miniupnp.tuxfamily.org/
+ https://github.com/miniupnp/miniupnp/
+"
+SRC_URI="
+ https://miniupnp.tuxfamily.org/files/${MY_P}.tar.gz
+ verify-sig? (
+ https://miniupnp.tuxfamily.org/files/${MY_P}.tar.gz.sig
+ )
+"
+S=${WORKDIR}/${MY_P}
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+
+DEPEND="
+ >=net-libs/miniupnpc-${PV}:0=
+"
+RDEPEND="
+ ${DEPEND}
+"
+BDEPEND="
+ verify-sig? ( sec-keys/openpgp-keys-miniupnp )
+"
+
+VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/miniupnp.asc
+
+PATCHES=(
+ "${FILESDIR}"/miniupnpc-2.2.3-shared-lib.patch
+)
+
+# DOCS are installed by net-libs/miniupnpc.
+DOCS=()
+
+# Example test command:
+# python -c 'import miniupnpc; u = miniupnpc.UPnP(); u.discover(); u.selectigd(); print(u.externalipaddress())'
+distutils_enable_tests import-check