commit:     4a8709aa2848af52736a61b804d0942c8cac904f
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Jan  5 09:00:51 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Jan  5 09:01:34 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4a8709aa

dev-python/scipy: add USE=test-rust

pooch -> ... -> paramiko, which is masked on wd40

Bug: https://bugs.gentoo.org/889812
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-python/scipy/scipy-1.10.0.ebuild | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/dev-python/scipy/scipy-1.10.0.ebuild 
b/dev-python/scipy/scipy-1.10.0.ebuild
index 797fb044c609..deff07afc050 100644
--- a/dev-python/scipy/scipy-1.10.0.ebuild
+++ b/dev-python/scipy/scipy-1.10.0.ebuild
@@ -44,7 +44,7 @@ fi
 
 LICENSE="BSD LGPL-2"
 SLOT="0"
-IUSE="doc +fortran"
+IUSE="doc +fortran test-rust"
 
 # umfpack is technically optional but it's preferred to have it available.
 DEPEND="
@@ -69,9 +69,11 @@ BDEPEND="
        doc? ( app-arch/unzip )
        fortran? ( dev-python/pythran[${PYTHON_USEDEP}] )
        test? (
-               dev-python/pooch[${PYTHON_USEDEP}]
                dev-python/pytest-xdist[${PYTHON_USEDEP}]
        )
+       test-rust? (
+               dev-python/pooch[${PYTHON_USEDEP}]
+       )
 "
 
 EPYTEST_DESELECT=(
@@ -107,6 +109,12 @@ python_configure_all() {
 python_test() {
        cd "${T}" || die
 
+       if ! has_version -b "dev-python/pooch[${PYTHON_USEDEP}]" ; then
+               EPYTEST_IGNORE+=(
+                       datasets/tests/test_data.py
+               )
+       fi
+
        epytest -n "$(makeopts_jobs)" --pyargs scipy
 }
 

Reply via email to