commit:     9e0f7465bf0fc25b512de83dc17a107ce0a4376c
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Oct 24 16:48:39 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Oct 24 17:50:58 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9e0f7465

dev-python/nbval: Enable py3.12

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/nbval/nbval-0.10.0-r1.ebuild | 34 +++++++++++++++++++++++----------
 1 file changed, 24 insertions(+), 10 deletions(-)

diff --git a/dev-python/nbval/nbval-0.10.0-r1.ebuild 
b/dev-python/nbval/nbval-0.10.0-r1.ebuild
index 73bb7b7f8fe9..229392ee58ff 100644
--- a/dev-python/nbval/nbval-0.10.0-r1.ebuild
+++ b/dev-python/nbval/nbval-0.10.0-r1.ebuild
@@ -3,12 +3,16 @@
 
 EAPI=8
 
-PYTHON_COMPAT=( python3_{9..11} )
 DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{10..12} )
+
 inherit distutils-r1 pypi
 
 DESCRIPTION="A pytest plugin to validate Jupyter notebooks"
-HOMEPAGE="https://github.com/computationalmodelling/nbval";
+HOMEPAGE="
+       https://github.com/computationalmodelling/nbval/
+       https://pypi.org/project/nbval/
+"
 
 LICENSE="BSD"
 SLOT="0"
@@ -23,20 +27,15 @@ RDEPEND="
 BDEPEND="
        test? (
                dev-python/nbdime[${PYTHON_USEDEP}]
-               dev-python/sympy[${PYTHON_USEDEP}]
+               $(python_gen_cond_dep '
+                       dev-python/sympy[${PYTHON_USEDEP}]
+               ' python3_{10..11})
        )
        doc? (
                virtual/pandoc
        )
 "
 
-EPYTEST_IGNORE=(
-       # Mocker not packaged
-       tests/test_nbdime_reporter.py
-
-       tests/test_coverage.py
-)
-
 distutils_enable_tests pytest
 distutils_enable_sphinx docs/source \
        dev-python/sphinx-rtd-theme \
@@ -45,5 +44,20 @@ distutils_enable_sphinx docs/source \
        dev-python/matplotlib
 
 python_test() {
+       local EPYTEST_IGNORE=(
+               # Mocker not packaged
+               tests/test_nbdime_reporter.py
+
+               tests/test_coverage.py
+       )
+       local EPYTEST_DESELECT=()
+
+       if ! has_version "dev-python/sympy[${PYTHON_USEDEP}]"; then
+               EPYTEST_DESELECT+=(
+                       
"tests/test_unit_tests_in_notebooks.py::test_print[${S}/tests/ipynb-test-samples/test-latex-pass-failsbutignoreoutput.ipynb]"
+                       
"tests/test_unit_tests_in_notebooks.py::test_print[${S}/tests/ipynb-test-samples/test-latex-pass-correctouput.ipynb]"
+               )
+       fi
+
        PYTHONPATH=. epytest # 895258
 }

Reply via email to