diff options
| author | Ricardo Wurmus <rekado@elephly.net> | 2025-01-10 16:31:12 +0100 |
|---|---|---|
| committer | Ricardo Wurmus <rekado@elephly.net> | 2025-01-20 21:37:40 +0100 |
| commit | 5762420f9c04fe3cdb2af09cbed74b7fdb92b032 (patch) | |
| tree | b5c7ed8b687c536bcf640108874a310770aee7ae /gnu | |
| parent | d4baa43992477835647619a542dfd2bd1944933b (diff) | |
gnu: scregseg: Patch for numpy compatibility.
* gnu/packages/bioinformatics.scm (scregseg)[arguments]: Add phase
'compatibility.
Change-Id: I738d675c10acdbae7d40b3f806703ba8f7936a19
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/bioinformatics.scm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm index 0c5062ef8c..2ad3fb87a4 100644 --- a/gnu/packages/bioinformatics.scm +++ b/gnu/packages/bioinformatics.scm @@ -23395,6 +23395,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. |
