From 2259c0f494e9606a6c926347abcbf67226f192d2 Mon Sep 17 00:00:00 2001 From: Bernard Cafarelli Date: Wed, 25 Sep 2019 01:20:20 +0200 Subject: [PATCH] net-analyzer/wapiti: fix hard dependency on pytest-runner Closes: https://bugs.gentoo.org/695582 Package-Manager: Portage-2.3.76, Repoman-2.3.17 Signed-off-by: Bernard Cafarelli --- net-analyzer/wapiti/wapiti-3.0.2.ebuild | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/net-analyzer/wapiti/wapiti-3.0.2.ebuild b/net-analyzer/wapiti/wapiti-3.0.2.ebuild index b96bead9fad6..d43c24730794 100644 --- a/net-analyzer/wapiti/wapiti-3.0.2.ebuild +++ b/net-analyzer/wapiti/wapiti-3.0.2.ebuild @@ -16,9 +16,12 @@ SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" -IUSE="kerberos ntlm" +IUSE="kerberos ntlm test" -DEPEND="" +DEPEND="test? ( + dev-python/pytest[${PYTHON_USEDEP}] + dev-python/pytest-runner[${PYTHON_USEDEP}] + )" RDEPEND="dev-python/beautifulsoup:4[${PYTHON_USEDEP}] dev-python/lxml[${PYTHON_USEDEP}] dev-python/mako[${PYTHON_USEDEP}] @@ -29,3 +32,8 @@ RDEPEND="dev-python/beautifulsoup:4[${PYTHON_USEDEP}] ntlm? ( dev-python/requests-ntlm[${PYTHON_USEDEP}] )" S=${WORKDIR}/${MY_P} + +python_prepare_all() { + sed -e 's/"pytest-runner"//' -i setup.py || die + distutils-r1_python_prepare_all +} -- 2.26.2