# Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 PYTHON_COMPAT=( python2_7 python3_{5,6,7} pypy{,3} ) PYTHON_REQ_USE="ssl(+),threads(+)" inherit bash-completion-r1 distutils-r1 multiprocessing SETUPTOOLS_PV="41.0.1" WHEEL_PV="0.33.1" DESCRIPTION="Installs python packages -- replacement for easy_install" HOMEPAGE="https://pip.pypa.io/ https://pypi.org/project/pip/ https://github.com/pypa/pip/" SRC_URI=" https://github.com/pypa/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz test? ( https://files.pythonhosted.org/packages/py2.py3/s/setuptools/setuptools-${SETUPTOOLS_PV}-py2.py3-none-any.whl https://files.pythonhosted.org/packages/py2.py3/w/wheel/wheel-${WHEEL_PV}-py2.py3-none-any.whl ) " # PyPI archive does not have tests, so we need to download from GitHub. # setuptools & wheel .whl files are required for testing, exact version is not very important. LICENSE="MIT" KEYWORDS="~amd64 ~x86" SLOT="0" IUSE="test -vanilla" # disable-system-install patch breaks tests RESTRICT="!vanilla? ( test )" RDEPEND=" >=dev-python/setuptools-39.2.0[${PYTHON_USEDEP}] " DEPEND=" ${RDEPEND} test? ( dev-python/freezegun[${PYTHON_USEDEP}] dev-python/mock[${PYTHON_USEDEP}] dev-python/pretend[${PYTHON_USEDEP}] "${COMPLETION}" || die newbashcomp "${COMPLETION}" ${PN} ${PYTHON} -c "${pipcmd}" completion --zsh > "${COMPLETION}" || die insinto /usr/share/zsh/site-functions newins "${COMPLETION}" _pip }