commit:     e5eb0f82b74a20113eb9c2d881ce68142646563b
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Jun  7 15:11:11 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Jun  7 17:26:39 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e5eb0f82

dev-python/xarray: Handle missing dev-python/scipy gracefully

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

 dev-python/xarray/xarray-2024.5.0.ebuild | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/dev-python/xarray/xarray-2024.5.0.ebuild 
b/dev-python/xarray/xarray-2024.5.0.ebuild
index 6b80776f042b..208aa7e77af6 100644
--- a/dev-python/xarray/xarray-2024.5.0.ebuild
+++ b/dev-python/xarray/xarray-2024.5.0.ebuild
@@ -48,6 +48,12 @@ python_test() {
                EPYTEST_DESELECT+=(
                        
'xarray/tests/test_missing.py::test_interpolate_na_2d[coords1]'
                )
+
+               if ! has_version "dev-python/scipy[${PYTHON_USEDEP}]" ; then
+                       EPYTEST_DESELECT+=(
+                               
xarray/tests/test_calendar_ops.py::test_interp_calendar
+                       )
+               fi
        fi
 
        if use big-endian ; then

Reply via email to