commit:     7c5b36b5cd3a90955d51a8c044313a126d633a07
Author:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
AuthorDate: Sat Jun  5 11:55:23 2021 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Sat Jun  5 11:56:05 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7c5b36b5

dev-python/qtawesome: restrict dependency on pytest-qt to <4

Package-Manager: Portage-3.0.19, Repoman-3.0.3
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>

 dev-python/qtawesome/qtawesome-1.0.2.ebuild | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

diff --git a/dev-python/qtawesome/qtawesome-1.0.2.ebuild 
b/dev-python/qtawesome/qtawesome-1.0.2.ebuild
index 135fd3162ca..b2805bcbc5f 100644
--- a/dev-python/qtawesome/qtawesome-1.0.2.ebuild
+++ b/dev-python/qtawesome/qtawesome-1.0.2.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=7
 
-PYTHON_COMPAT=( python3_{7,8,9} )
+PYTHON_COMPAT=( python3_{7..9} )
 DISTUTILS_USE_SETUPTOOLS=rdepend
 
 inherit distutils-r1 virtualx
@@ -21,16 +21,22 @@ KEYWORDS="amd64 x86"
 
 RDEPEND="
        media-fonts/fontawesome
-       dev-python/QtPy[${PYTHON_USEDEP},gui]
+       dev-python/QtPy[pyqt5(+),gui,${PYTHON_USEDEP}]
 "
 
-DEPEND="test? ( dev-python/pytest-qt[${PYTHON_USEDEP}] )"
+DEPEND="test? ( <dev-python/pytest-qt-4[${PYTHON_USEDEP}] )"
 
 S="${WORKDIR}/${MY_P}"
 
 distutils_enable_tests pytest
 distutils_enable_sphinx docs/source
 
+src_test() {
+       virtx python_foreach_impl python_test
+}
+
 python_test() {
-       virtx pytest -vv
+       # Tests fail with pyside2, so depend on QtPy[pyqt5] and explicitly run
+       # the tests with pyqt5
+       PYTEST_QT_API="pyqt5" epytest
 }

Reply via email to