# Copyright 2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 PYTHON_COMPAT=( python{2_7,3_{6,7,8}} ) inherit distutils-r1 DESCRIPTION="Cross-platform tool for adding locations to the user PATH" HOMEPAGE="https://github.com/ofek/userpath" if [[ ${PV} == 9999 ]]; then inherit git-r3 EGIT_REPO_URI="${HOMEPAGE}" else SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~x86-linux" fi LICENSE="Apache-2.0 MIT" SLOT="0" IUSE="test" RDEPEND=" dev-python/click[${PYTHON_USEDEP}] dev-python/distro[${PYTHON_USEDEP}] dev-python/setuptools[${PYTHON_USEDEP}]" DEPEND="${RDEPEND} test? ( dev-python/coverage[${PYTHON_USEDEP}] dev-python/pytest[${PYTHON_USEDEP}] )" python_prepare_all(){ use !test && rm tests/__init__.py distutils-r1_python_prepare_all }