commit:     03b47b4d56d8cfa4f8694d3ee491af7db5426bfa
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Apr 29 10:51:04 2020 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Apr 29 11:02:54 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=03b47b4d

dev-python/pytest-timeout: Add missing test-dep on pexpect

Closes: https://bugs.gentoo.org/719998
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/pytest-timeout/pytest-timeout-1.3.4.ebuild | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/dev-python/pytest-timeout/pytest-timeout-1.3.4.ebuild 
b/dev-python/pytest-timeout/pytest-timeout-1.3.4.ebuild
index 1fe275fe542..8f63704bdd2 100644
--- a/dev-python/pytest-timeout/pytest-timeout-1.3.4.ebuild
+++ b/dev-python/pytest-timeout/pytest-timeout-1.3.4.ebuild
@@ -15,8 +15,15 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
 SLOT="0"
 LICENSE="MIT"
 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~s390 ~sparc ~x86 
~amd64-linux ~x86-linux"
+IUSE="test"
+RESTRICT="!test? ( test )"
 
 RDEPEND="dev-python/pytest[${PYTHON_USEDEP}]"
+BDEPEND="
+       test? (
+               ${RDEPEND}
+               dev-python/pexpect[${PYTHON_USEDEP}]
+       )"
 
 python_test() {
        distutils_install_for_testing

Reply via email to