guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

213/213: gnu: scregseg: Patch for numpy compatibility.


From: guix-commits
Subject: 213/213: gnu: scregseg: Patch for numpy compatibility.
Date: Fri, 10 Jan 2025 10:43:30 -0500 (EST)

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

commit ddade1e476e2b21bfe5daed09bfb2220cf657f3e
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Fri Jan 10 16:31:12 2025 +0100

    gnu: scregseg: Patch for numpy compatibility.
    
    * gnu/packages/bioinformatics.scm (scregseg)[arguments]: Add phase
    'compatibility.
    
    Change-Id: I738d675c10acdbae7d40b3f806703ba8f7936a19
---
 gnu/packages/bioinformatics.scm | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm
index cf828902ae..283ec58f26 100644
--- a/gnu/packages/bioinformatics.scm
+++ b/gnu/packages/bioinformatics.scm
@@ -23325,6 +23325,11 @@ populations.")
          (add-before 'check 'build-extensions
            (lambda _
              (invoke "python" "setup.py" "build_ext" "--inplace")))
+         ;; NumPy 1.20 deprecated the type wrappers for int and float.
+         (add-after 'unpack 'compatibility
+           (lambda _
+             (substitute* "src/scregseg/_utils.pyx"
+               (("np.float") "float"))))
          (add-after 'unpack 'do-not-fail-to-find-sklearn
            (lambda _
              ;; XXX: I have no idea why it cannot seem to find sklearn.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]