1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 PYTHON_COMPAT=( python2_7 )
9 DESCRIPTION="A fairly simple, decently quick python interface to Amazon's S3 storage service"
10 HOMEPAGE="http://sendapatch.se/projects/simples3/ https://pypi.org/project/simples3/"
11 SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
15 KEYWORDS="~amd64 ~x86"
17 RESTRICT="!test? ( test )"
19 DEPEND="test? ( dev-python/nose[${PYTHON_USEDEP}] )"
21 DOCS=( changes.rst README TODO )
23 python_prepare_all() {
24 sed -i -e "s/setuptools/distutils.core/" setup.py || die
26 distutils-r1_python_prepare_all
30 nosetests || die "Tests fail with ${EPYTHON}"