summaryrefslogtreecommitdiff
path: root/gnu/packages/python-science.scm
diff options
context:
space:
mode:
authorVinicius Monego <monego@posteo.net>2025-06-22 12:14:23 -0300
committerVinicius Monego <monego@posteo.net>2025-06-22 12:41:00 -0300
commite660638d0de2fa6ab298f138e37e1a8304e337fc (patch)
treeaf76456319fda54a92cdaa0fb6e5efc42ec1ac05 /gnu/packages/python-science.scm
parentd32e619d478ba6ccffe92120be23a79e897d0464 (diff)
gnu: python-pingouin: Update to 0.5.5.
* gnu/packages/python-science.scm (python-pingouin): Update to 0.5.5. [arguments]<#:test-flags>: Enable previously failing test. Skip two more failing tests. <#:phases>: Delete unnecessary phases 'loosen-requirements', 'remove-outdated-check', 'sklearn-compatibility'. Change-Id: Iac44747d65c9be52831ae792a24b9cc5604c54dc
Diffstat (limited to 'gnu/packages/python-science.scm')
-rw-r--r--gnu/packages/python-science.scm39
1 files changed, 8 insertions, 31 deletions
diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm
index 34403d8566..8bab7b81d3 100644
--- a/gnu/packages/python-science.scm
+++ b/gnu/packages/python-science.scm
@@ -3357,48 +3357,25 @@ of Pandas
(define-public python-pingouin
(package
(name "python-pingouin")
- (version "0.5.4")
+ (version "0.5.5")
(source
- ;; The PyPI tarball does not contain the tests.
(origin
- (method git-fetch)
+ (method git-fetch) ; no tests in PyPI tarball
(uri (git-reference
(url "https://github.com/raphaelvallat/pingouin")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32
- "1j3qkgvyc31604ddl952h4hwza7schg8kwkycmxvpvx7xjj7nn68"))))
+ "0i3yzdlj08di3mzi69ci57jm5myl123hp8c5vn1g35k77m4zpgvd"))))
(build-system pyproject-build-system)
(arguments
(list
- #:test-flags
- ;; This one fails due to minor differences in accuracy
- '(list "-k" "not test_logistic_regression")
- #:phases
- '(modify-phases %standard-phases
- (add-after 'unpack 'loosen-requirements
- (lambda _
- (substitute* '("requirements.txt" "setup.py")
- ;; Remove sklearn pinning since it works fine with 1.1.2:
- ;; https://github.com/raphaelvallat/pingouin/pull/300
- (("scikit-learn<1\\.1\\.0")
- "scikit-learn"))))
- ;; On loading, Pingouin uses the outdated package to check if a newer
- ;; version is available on PyPI. This check adds an extra dependency
- ;; and is irrelevant to Guix users. So, disable it.
- (add-after 'unpack 'remove-outdated-check
- (lambda _
- (substitute* "setup.py"
- (("\"outdated\",") ""))
- (substitute* "pingouin/__init__.py"
- (("^from outdated[^\n]*") "")
- (("^warn_if_outdated[^\n]*") ""))))
- (add-after 'unpack 'sklearn-compatibility
- (lambda _
- (substitute* "pingouin/regression.py"
- (("kwargs\\[\"penalty\"\\] = \"none\"")
- "kwargs[\"penalty\"] = None")))))))
+ ;; _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"))))
(native-inputs
(list python-pytest python-pytest-cov))
(propagated-inputs