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

commit 5ace66002b031ee0291a6fa6e1312f8ed6ccae1c
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Wed Jan 7 14:45:53 2026 +0000

    gnu: python-pingouin: Fix tests.
    
    * gnu/packages/python-science.scm (python-pingouin):
    [arguments] <test-flags>: Rework skipped tests.
    <phases>: Add 'relax-requirements.
    [native-inputs]: Remove python-pytest-cov; add python-setuptools.
    
    Change-Id: If45e91fabbd479819731041c09dd6e1e561774d6
---
 gnu/packages/python-science.scm | 26 +++++++++++++++++---------
 1 file changed, 17 insertions(+), 9 deletions(-)

diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm
index c1e6244fbf..b48da6f72f 100644
--- a/gnu/packages/python-science.scm
+++ b/gnu/packages/python-science.scm
@@ -5150,10 +5150,10 @@ of Pandas
     (version "0.5.5")
     (source
      (origin
-       (method git-fetch) ; no tests in PyPI tarball
+       (method git-fetch)
        (uri (git-reference
-             (url "https://github.com/raphaelvallat/pingouin";)
-             (commit (string-append "v" version))))
+              (url "https://github.com/raphaelvallat/pingouin";)
+              (commit (string-append "v" version))))
        (file-name (git-file-name name version))
        (sha256
         (base32
@@ -5161,13 +5161,21 @@ of Pandas
     (build-system pyproject-build-system)
     (arguments
      (list
-      ;; _flapack.error: (liwork>=max(1,10*n)||liwork==-1)
-      ;; failed for 10th keyword liwork: dsyevr:liwork=1
-      #:test-flags #~(list "-k" (string-append
-                                 "not test_box_m"
-                                 " and not test_linear_regression"))))
+      ;; tests: 85 passed, 3 deselected, 43 warnings
+      #:test-flags
+      ;; AssertionError: Arrays are not equal
+      #~(list 
"--deselect=tests/test_pairwise.py::TestPairwise::test_pairwise_tests"
+              ;; AssertionError: assert False
+              "--deselect=tests/test_power.py::TestPower::test_power_ttest")
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'unpack 'fix-pytest-config
+            (lambda _
+              (substitute* "pyproject.toml"
+                ((" --cov") "")))))))
     (native-inputs
-     (list python-pytest python-pytest-cov))
+     (list python-pytest
+           python-setuptools))
     (propagated-inputs
      (list python-matplotlib
            python-mpmath

Reply via email to