gnu: scregseg: Patch for numpy compatibility.

* gnu/packages/bioinformatics.scm (scregseg)[arguments]: Add phase
'compatibility.

Change-Id: I738d675c10acdbae7d40b3f806703ba8f7936a19
This commit is contained in:
Ricardo Wurmus 2025-01-10 16:31:12 +01:00
parent 22b9dbbe7f
commit 42552ae0f7
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -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.