1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 DISTUTILS_USE_SETUPTOOLS=rdepend
7 PYTHON_COMPAT=( python{2_7,3_{6,7,8,9}} pypy3 )
10 DESCRIPTION="Minimal PyPI server"
11 HOMEPAGE="https://github.com/pypiserver/pypiserver"
12 SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
16 KEYWORDS="~alpha ~amd64 ~arm64 ~hppa ~ppc64 ~sparc ~x86"
20 dev-python/pip[${PYTHON_USEDEP}]
21 >=dev-python/wheel-0.25.0[${PYTHON_USEDEP}]"
23 dev-python/setuptools-git[${PYTHON_USEDEP}]
26 dev-python/passlib[${PYTHON_USEDEP}]
27 >=dev-python/pytest-2.3[${PYTHON_USEDEP}]
28 dev-python/twine[${PYTHON_USEDEP}]
29 dev-python/webtest[${PYTHON_USEDEP}]
30 $(python_gen_cond_dep 'dev-python/mock[${PYTHON_USEDEP}]' -2)
35 distutils_enable_tests pytest
38 sed -i -e "/tox/d" setup.py || die
40 # https://github.com/pypiserver/pypiserver/issues/312
41 sed -e 's:test_root_count:_&:' \
42 -i tests/test_app.py || die
43 sed -e 's:test_hash_algos:_&:' \
44 -e 's:test_pipInstall_openOk:_&:' \
45 -e 's:test_pipInstall_authedOk:_&:' \
46 -i tests/test_server.py || die
48 distutils-r1_src_prepare