me
/
guix
Archived
1
0
Fork 0

gnu: python-plastid: Patch it for python 3.10.

* gnu/packages/bioinformatics.scm (python-plastid)[arguments]: Add new phase
'patch-for-python-3.10.

Signed-off-by: Ricardo Wurmus <rekado@elephly.net>
Mădălin Ionel Patrașcu 2023-09-18 05:39:20 +02:00 committed by Ricardo Wurmus
parent 30e5484f35
commit 1c8e159335
No known key found for this signature in database
GPG Key ID: 197A5888235FACAC
1 changed files with 7 additions and 0 deletions

View File

@ -3787,6 +3787,13 @@ UCSC genome browser.")
"-xf" (assoc-ref inputs "test-data"))
;; This one requires bowtie-build
(delete-file "plastid/test/functional/test_crossmap.py")))
(add-after 'unpack 'patch-for-python-3.10
(lambda _
;; Some classes were moved from collections to collections.abc
;; in Python 3.10.
(substitute* "plastid/readers/bigbed.pyx"
((", Iterable")
"\nfrom collections.abc import Iterable"))))
(add-before 'check 'build-extensions
(lambda _
;; Cython extensions have to be built before running the tests.