summary refs log tree commit diff
path: root/gnu/packages/python-science.scm
diff options
context:
space:
mode:
authorMarius Bakke <marius@gnu.org>2022-09-14 20:51:59 +0200
committerMarius Bakke <marius@gnu.org>2022-09-14 21:08:34 +0200
commit8bd7cd34bf63851d26d3205ccb98d0adbf5d51e5 (patch)
tree19d0acf163e76c806cb4d436688859f39c0eb467 /gnu/packages/python-science.scm
parent511a1b2a2fd2b6098a0d68df111f99f2d232842a (diff)
downloadguix-8bd7cd34bf63851d26d3205ccb98d0adbf5d51e5.tar.gz
gnu: python-pingouin: Don't pin scikit-learn version.
* gnu/packages/python-science.scm (python-pingouin)[arguments]: Add phase.
Diffstat (limited to 'gnu/packages/python-science.scm')
-rw-r--r--gnu/packages/python-science.scm7
1 files changed, 7 insertions, 0 deletions
diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm
index e2a0fb3a95..9a75bf3089 100644
--- a/gnu/packages/python-science.scm
+++ b/gnu/packages/python-science.scm
@@ -851,6 +851,13 @@ of Pandas
     (arguments
      `(#: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.