summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev-python/geoip-python/geoip-python-1.3.2-r1.ebuild20
1 files changed, 7 insertions, 13 deletions
diff --git a/dev-python/geoip-python/geoip-python-1.3.2-r1.ebuild b/dev-python/geoip-python/geoip-python-1.3.2-r1.ebuild
index 04f3cb2e12c9..6097ed5189aa 100644
--- a/dev-python/geoip-python/geoip-python-1.3.2-r1.ebuild
+++ b/dev-python/geoip-python/geoip-python-1.3.2-r1.ebuild
@@ -1,8 +1,9 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=6
-PYTHON_COMPAT=( python3_{7,8} pypy3 )
+EAPI=7
+
+PYTHON_COMPAT=( python3_{7,8,9} pypy3 )
inherit distutils-r1
@@ -12,6 +13,7 @@ MY_P="${MY_PN}-${PV}"
DESCRIPTION="Python bindings for GeoIP"
HOMEPAGE="https://github.com/maxmind/geoip-api-python"
SRC_URI="https://github.com/maxmind/${MY_PN}/archive/v${PV}.tar.gz -> ${MY_P}.tar.gz"
+S="${WORKDIR}/${MY_P}"
LICENSE="GPL-2+"
SLOT="0"
@@ -20,19 +22,11 @@ IUSE="examples test"
RESTRICT="!test? ( test )"
RDEPEND=">=dev-libs/geoip-1.4.8"
-DEPEND="
- ${RDEPEND}
- dev-python/setuptools[${PYTHON_USEDEP}]
- test? ( dev-python/nose[${PYTHON_USEDEP}] )
-"
-
-S="${WORKDIR}/${MY_P}"
+DEPEND="${RDEPEND}"
DOCS=( README.rst ChangeLog.md )
-python_test() {
- esetup.py test
-}
+distutils_enable_tests nose
python_install_all() {
if use examples; then