guix_mirror_bot pushed a commit to branch master
in repository guix.

commit fcd9f151c4c317ffb0375b666e5fdbe41385a2d2
Author: Hugo Buddelmeijer <[email protected]>
AuthorDate: Mon Feb 9 21:17:18 2026 +0100

    gnu: python-dcor: Fix profile collission by switching to NumPy2.
    
    * gnu/packages/statistics.scm (python-dcor): Switch to NumPy2.
    [arguments]<#:phases>: Add 'remove-doctests phase.
    [propagated-inputs]: Remove python-numpy-1; add python-numpy.
    
    Change-Id: Ib776e540ef1228b71979d2bd96b3100cb18414d0
    Signed-off-by: Sharlatan Hellseher <[email protected]>
---
 gnu/packages/statistics.scm | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm
index 93cfc99d23..43e588b06f 100644
--- a/gnu/packages/statistics.scm
+++ b/gnu/packages/statistics.scm
@@ -678,6 +678,15 @@ and a lot more.")
        (sha256
         (base32 "1knbaygh489v5hz6fggdv09lz323zklqjb5m52pkkv6pjs2l0v9q"))))
     (build-system pyproject-build-system)
+    (arguments
+     (list
+      #:phases
+      #~(modify-phases %standard-phases
+         ;; doctests require NumPy1.
+         (add-after 'unpack 'remove-doctests
+           (lambda _
+             (substitute* "setup.cfg"
+               (("addopts.*") "")))))))
     (native-inputs
      (list python-array-api-strict
            python-pytest
@@ -687,7 +696,7 @@ and a lot more.")
      (list python-array-api-compat
            python-joblib
            python-numba
-           python-numpy-1
+           python-numpy
            python-scipy))
     (home-page "https://dcor.readthedocs.io/";)
     (synopsis "Distance correlation and related E-statistics in Python")

Reply via email to