GNU bug report logs - #66064
[PATCH] gnu: python-plastid: Patch it for python 3.10.

Previous Next

Package: guix-patches;

Reported by: Mădălin Ionel Patrașcu <madalinionel.patrascu <at> mdc-berlin.de>

Date: Mon, 18 Sep 2023 03:41:01 UTC

Severity: normal

Tags: patch

Done: Ricardo Wurmus <rekado <at> elephly.net>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Ricardo Wurmus <rekado <at> elephly.net>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#66064: closed ([PATCH] gnu: python-plastid: Patch it for
 python 3.10.)
Date: Mon, 18 Sep 2023 08:35:01 +0000
[Message part 1 (text/plain, inline)]
Your message dated Mon, 18 Sep 2023 10:33:37 +0200
with message-id <87led3yj6c.fsf <at> elephly.net>
and subject line Re: [bug#66064] [PATCH] gnu: python-plastid: Patch it for python 3.10.
has caused the debbugs.gnu.org bug report #66064,
regarding [PATCH] gnu: python-plastid: Patch it for python 3.10.
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
66064: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=66064
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Mădălin Ionel Patrașcu
 <madalinionel.patrascu <at> mdc-berlin.de>
To: <guix-patches <at> gnu.org>
Subject: [PATCH] gnu: python-plastid: Patch it for python 3.10.
Date: Mon, 18 Sep 2023 05:39:20 +0200
* 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



[Message part 3 (message/rfc822, inline)]
From: Ricardo Wurmus <rekado <at> elephly.net>
To: Mădălin Ionel Patrașcu
 <madalinionel.patrascu <at> mdc-berlin.de>
Cc: 66064-done <at> debbugs.gnu.org
Subject: Re: [bug#66064] [PATCH] gnu: python-plastid: Patch it for python 3.10.
Date: Mon, 18 Sep 2023 10:33:37 +0200
Mădălin Ionel Patrașcu <madalinionel.patrascu <at> mdc-berlin.de> writes:

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

Applied, thanks!

-- 
Ricardo


This bug report was last modified 1 year and 248 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.