Subject: bug#66064: closed (Re: [bug#66064] [PATCH] gnu: python-plastid: Patch it for python 3.10.)

From: [email-masked] (GNU bug Tracking System)
Date: Mon, 18 Sep 2023 08:35:01 +0000

Your bug report

#66064: [PATCH] gnu: python-plastid: Patch it for python 3.10.

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
66064: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=66064
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: [bug#66064] [PATCH] gnu: python-plastid: Patch it for python 3.10.
From: Ricardo Wurmus <[email-masked]>
To: Mădălin Ionel Patrașcu<[email-masked]>
Cc: [email-masked]
Date: Mon, 18 Sep 2023 10:33:37 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Mădălin Ionel Patrașcu <[email-masked]> writes:

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

Applied, thanks!

-- 
Ricardo

Subject: [PATCH] gnu: python-plastid: Patch it for python 3.10.
From: Mădălin Ionel Patrașcu<[email-masked]>
To: <[email-masked]>
Date: Mon, 18 Sep 2023 05:39:20 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

* gnu/packages/bioinformatics.scm (python-plastid)[arguments]: Add
new phase patch-for-python-3.10.
---
 gnu/packages/bioinformatics.scm | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm
index c78f017a24..d7a9697c6e 100644
--- a/gnu/packages/bioinformatics.scm
+++ b/gnu/packages/bioinformatics.scm
@@ -3787,6 +3787,13 @@ (define-public python-plastid
                       "-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.

base-commit: 1d30ec935126f316187dfc26446347bc7de9868b
-- 
2.41.0