1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 PYTHON_COMPAT=( python{2_7,3_5,3_6,3_7} pypy pypy3 )
9 MY_PN="geoip-api-python"
12 DESCRIPTION="Python bindings for GeoIP"
13 HOMEPAGE="https://github.com/maxmind/geoip-api-python"
14 SRC_URI="https://github.com/maxmind/${MY_PN}/archive/v${PV}.tar.gz -> ${MY_P}.tar.gz"
18 KEYWORDS="amd64 ~ia64 ~ppc ~sparc x86"
20 RESTRICT="!test? ( test )"
22 RDEPEND=">=dev-libs/geoip-1.4.8"
25 dev-python/setuptools[${PYTHON_USEDEP}]
26 test? ( dev-python/nose[${PYTHON_USEDEP}] )
29 S="${WORKDIR}/${MY_P}"
31 DOCS=( README.rst ChangeLog.md )
37 python_install_all() {
40 docompress -x /usr/share/doc/${PF}/examples
42 distutils-r1_python_install_all