1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 # py3 dropped due to failing tests once lockfile installed
7 PYTHON_COMPAT=( python2_7 )
8 PYTHON_REQ_USE="ssl(+)"
12 DESCRIPTION="Unified Interface to the Cloud - python support libs"
13 HOMEPAGE="http://libcloud.apache.org/index.html"
14 SRC_URI="mirror://apache/${PN}/apache-${P}.tar.bz2"
20 RESTRICT="!test? ( test )"
23 DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
25 dev-python/mock[${PYTHON_USEDEP}]
26 dev-python/lockfile[${PYTHON_USEDEP}]
29 S="${WORKDIR}/apache-${P}"
31 python_prepare_all() {
34 mv example_*.py examples || die
36 distutils-r1_python_prepare_all
40 cp libcloud/test/secrets.py-dist libcloud/test/secrets.py || die
48 python_install_all() {
49 use examples && local EXAMPLES=( examples/. )
50 distutils-r1_python_install_all