1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 PYTHON_COMPAT=( python2_7 python3_{6,7} pypy3 )
9 DESCRIPTION="namespace control and lazy-import mechanism"
10 HOMEPAGE="https://pypi.org/project/apipkg/"
11 SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
15 KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~m68k ~mips ppc ppc64 s390 ~sh sparc x86"
17 RESTRICT="!test? ( test )"
19 DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
20 dev-python/hgdistver[${PYTHON_USEDEP}]
21 test? ( dev-python/pytest[${PYTHON_USEDEP}] )"
24 py.test test_apipkg.py || die "Tests fail under ${EPYTHON}"
27 python_install_all() {
28 use examples && local EXAMPLES=( example/. )
29 distutils-r1_python_install_all