mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-18 21:46:35 +01:00
gnu: scregseg: Patch for numpy compatibility.
* gnu/packages/bioinformatics.scm (scregseg)[arguments]: Add phase 'compatibility. Change-Id: I738d675c10acdbae7d40b3f806703ba8f7936a19
This commit is contained in:
parent
22b9dbbe7f
commit
42552ae0f7
1 changed files with 5 additions and 0 deletions
|
@ -23368,6 +23368,11 @@ (define-public scregseg
|
|||
(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.
|
||||
|
|
Loading…
Reference in a new issue