sharlatan pushed a commit to branch python-team
in repository guix.

commit daeef8d3f8edfcca9a01f2c8771bcdaaaf7f0a29
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Wed Mar 26 20:12:57 2025 +0000

    gnu: python-astroml: Disable more tests.
    
    * gnu/packages/astronomy.scm (python-astroml) [arguments] <test-flags>:
    Disable tests requiring NumPy, reported upstream.
    
    Change-Id: I30693e2f3550ba8aab012b54d3d838508038c762
---
 gnu/packages/astronomy.scm | 22 ++++++++++++++++------
 1 file changed, 16 insertions(+), 6 deletions(-)

diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index 9eef7385d6..7284acf49f 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -2058,7 +2058,10 @@ simulated Astronomical data in Python.")
         "--ignore=astroML/density_estimation/tests/test_bayesian_blocks.py"
         "--ignore=astroML/density_estimation/tests/test_bayesian_blocks.py"
         "--ignore=astroML/density_estimation/tests/test_hist_binwidth.py"
-        "--ignore=astroML/density_estimation/tests/test_hist_binwidth.py")
+        "--ignore=astroML/density_estimation/tests/test_hist_binwidth.py"
+        ;; Disalbe tests with NumPy, see
+        ;; <https://github.com/astroML/astroML/issues/281>.
+        "--ignore=astroML/tests/test_resample.py")
       #:phases
       '(modify-phases %standard-phases
          (add-after 'unpack 'patch-build-system
@@ -2084,11 +2087,18 @@ simulated Astronomical data in Python.")
            ;; Some tests need this
            (lambda _
              (setenv "HOME" "/tmp"))))))
-    (propagated-inputs (list python-astropy python-matplotlib python-numpy
-                             python-scikit-learn python-scipy))
-    (native-inputs (list python-pytest-astropy-header python-pytest-cov
-                         python-pytest-doctestplus python-pytest-remotedata
-                         python-wheel))
+    (native-inputs
+     (list python-pytest-astropy-header
+           python-pytest-cov
+           python-pytest-doctestplus
+           python-pytest-remotedata
+           python-wheel))
+    (propagated-inputs
+     (list python-astropy
+           python-matplotlib
+           python-numpy
+           python-scikit-learn
+           python-scipy))
     (home-page "https://astroml.org";)
     (synopsis "Tools for machine learning and data mining in astronomy")
     (description "This package provides tools for machine learning and data

Reply via email to