commit:     fc463502bf24ca7127d308c04a9dc156c23768b6
Author:     Julien Roy <julien <AT> jroy <DOT> ca>
AuthorDate: Tue May 14 23:00:23 2024 +0000
Commit:     Julien Roy <julien <AT> jroy <DOT> ca>
CommitDate: Tue May 14 23:00:23 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=fc463502

media-sound/mopidy: enable py3.12

Closes: https://bugs.gentoo.org/931462
Signed-off-by: Julien Roy <julien <AT> jroy.ca>

 media-sound/mopidy/mopidy-3.4.2.ebuild | 20 ++++++++++++++------
 1 file changed, 14 insertions(+), 6 deletions(-)

diff --git a/media-sound/mopidy/mopidy-3.4.2.ebuild 
b/media-sound/mopidy/mopidy-3.4.2.ebuild
index b2db08df02..e958d820a7 100644
--- a/media-sound/mopidy/mopidy-3.4.2.ebuild
+++ b/media-sound/mopidy/mopidy-3.4.2.ebuild
@@ -1,10 +1,10 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
 
 DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_11 )
+PYTHON_COMPAT=( python3_{11..12} )
 
 inherit distutils-r1
 
@@ -34,7 +34,15 @@ DEPEND="
 
 distutils_enable_tests pytest
 
-python_test() {
-       # Ignore broken tests (due to network-sandbox)
-       pytest -v --ignore tests/stream/test_playback.py || die
-}
+EPYTEST_IGNORE=(
+       # Upstream uses a mix of pytest and unittest
+       # Since most tests are pytest, let's ignore unittest tests
+       tests/http/test_server.py
+       tests/http/test_handlers.py
+)
+
+EPYTEST_DESELECT=(
+       # Broken test due to network-sandbox
+       tests/stream/test_playback.py
+       tests/test_help.py::HelpTest::test_help_has_mopidy_options
+)

Reply via email to