summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGhislain Vaillant <ghislain.vaillant@inria.fr>2026-08-21 14:39:09 +0200
committerGhislain Vaillant <ghislain.vaillant@inria.fr>2026-08-23 08:19:44 +0200
commitc7e3889914857c12695c88309a279191efc49b76 (patch)
treeb0192f68e4de57457ea0511e341c80cc4ce4418e
parent46c2c9dd697a0354c5dad5ad3c6e4c6b5019f057 (diff)
machine-learning: python-geomstats: Fix build.
* guix-science/packages/machine-learning.scm (python-geomstats) [arguments]<#:test-flags>: Ignore more flaky tests. <#:phases>: Add phase to rename trapz to trapezoid.
-rw-r--r--guix-science/packages/machine-learning.scm28
1 files changed, 26 insertions, 2 deletions
diff --git a/guix-science/packages/machine-learning.scm b/guix-science/packages/machine-learning.scm
index da6c37f..d8cdd9b 100644
--- a/guix-science/packages/machine-learning.scm
+++ b/guix-science/packages/machine-learning.scm
@@ -558,6 +558,17 @@ length.")
558 "not (slow or redundant)" 558 "not (slow or redundant)"
559 ;; Flaky 559 ;; Flaky
560 (string-join (list 560 (string-join (list
561 "--deselect=tests/tests_geomstats/test_datasets/test_prepare_graph_data.py"
562 "TestHyperbolicEmbedding" "test_embed") "::")
563 (string-join (list
564 "--deselect=tests/tests_geomstats/test_geometry/test_discrete_curves.py"
565 "TestReparametrizationAligner"
566 "test_align_in_same_fiber") "::")
567 (string-join (list
568 "--deselect=tests/tests_geomstats/test_geometry/test_product_hpd_and_siegel_disks.py"
569 "TestProductHPDMatricesAndSiegelDisksMetric"
570 "test_squared_dist_is_symmetric") "::")
571 (string-join (list
561 "--deselect=tests/tests_geomstats/test_geometry/test_hpd_matrices.py" 572 "--deselect=tests/tests_geomstats/test_geometry/test_hpd_matrices.py"
562 "TestMatrixPower" "test_inverse_belongs") "::") 573 "TestMatrixPower" "test_inverse_belongs") "::")
563 (string-join (list 574 (string-join (list
@@ -566,8 +577,21 @@ length.")
566 "test_parallel_transport_ivp_norm") "::") 577 "test_parallel_transport_ivp_norm") "::")
567 ;; Requires python-pykeops. 578 ;; Requires python-pykeops.
568 "--ignore=tests/tests_geomstats/test_varifold.py" 579 "--ignore=tests/tests_geomstats/test_varifold.py"
569 ;; Requires jupyter kernel. 580 ;; Run unit tests only.
570 "--ignore=tests/tests_scripts/test_notebooks.py"))) 581 "tests/tests_geomstats")
582 #:phases
583 #~(modify-phases %standard-phases
584 ;; see
585 (add-after 'unpack 'rename-trapz-to-trapezoid
586 (lambda _
587 (substitute* (list "geomstats/_backend/__init__.py"
588 "geomstats/_backend/autograd/__init__.py"
589 "geomstats/_backend/numpy/__init__.py"
590 "geomstats/_backend/pytorch/__init__.py"
591 "geomstats/geometry/functions.py"
592 "tests/tests_geomstats/test_geometry/data/functions.py")
593 (("trapz")
594 "trapezoid")))))))
571 (propagated-inputs (list python-autograd 595 (propagated-inputs (list python-autograd
572 python-joblib 596 python-joblib
573 python-matplotlib 597 python-matplotlib