1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 # Python 3: https://github.com/google/google-apputils/issues/9
7 PYTHON_COMPAT=( python2_7 )
11 DESCRIPTION="Collection of utilities for building Python applications"
12 HOMEPAGE="https://github.com/google/google-apputils"
13 SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
17 KEYWORDS="~alpha amd64 arm ~arm64 hppa ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc x86"
19 RESTRICT="!test? ( test )"
22 dev-python/namespace-google[${PYTHON_USEDEP}]
23 >=dev-python/python-dateutil-1.4[${PYTHON_USEDEP}]
24 >=dev-python/python-gflags-1.4[${PYTHON_USEDEP}]
25 >=dev-python/pytz-2010[${PYTHON_USEDEP}]"
26 DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
27 test? ( ${RDEPEND} dev-python/mox[${PYTHON_USEDEP}] )"
30 "${FILESDIR}/0.4.2-sh_test-env.patch"
35 chmod -R a+rX,u+w,g-w,o-w ${P} || die
42 python_install_all() {
43 distutils-r1_python_install_all
45 find "${D}" -name '*.pth' -delete || die