net-analyzer/wapiti: fix hard dependency on pytest-runner
authorBernard Cafarelli <voyageur@gentoo.org>
Tue, 24 Sep 2019 23:20:20 +0000 (01:20 +0200)
committerBernard Cafarelli <voyageur@gentoo.org>
Tue, 24 Sep 2019 23:20:31 +0000 (01:20 +0200)
Closes: https://bugs.gentoo.org/695582
Package-Manager: Portage-2.3.76, Repoman-2.3.17
Signed-off-by: Bernard Cafarelli <voyageur@gentoo.org>
net-analyzer/wapiti/wapiti-3.0.2.ebuild

index b96bead9fad690754248175b7f9305cfe40cf3c6..d43c247307949f858252d55aec09318df611f394 100644 (file)
@@ -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
+}