guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

08/08: gnu: python-plotly-2.4.1: Patch for Python 3.10 changes.


From: guix-commits
Subject: 08/08: gnu: python-plotly-2.4.1: Patch for Python 3.10 changes.
Date: Mon, 24 Apr 2023 13:49:39 -0400 (EDT)

rekado pushed a commit to branch core-updates
in repository guix.

commit 09d2976c86f2cb1841ebe0685164912bfedfeeb5
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Mon Apr 24 19:47:53 2023 +0200

    gnu: python-plotly-2.4.1: Patch for Python 3.10 changes.
    
    * gnu/packages/graph.scm (python-plotly-2.4.1)[arguments]: Add phase
    'python-compatibility.
---
 gnu/packages/graph.scm | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/graph.scm b/gnu/packages/graph.scm
index b719b1be42..1091d3d56e 100644
--- a/gnu/packages/graph.scm
+++ b/gnu/packages/graph.scm
@@ -291,8 +291,16 @@ subplots, multiple-axes, polar charts, and bubble charts.")
           python-pytz
           python-requests
           python-six))
-    (arguments
-     '(#:tests? #f)))) ; The tests are not distributed in the release
+   (arguments
+    (list
+     #:tests? #false ;The tests are not distributed in the release
+     #:phases
+     '(modify-phases %standard-phases
+        (add-after 'unpack 'python-compatibility
+          (lambda _
+            (substitute* "plotly/grid_objs/grid_objs.py"
+              (("from collections import MutableSequence")
+               "from collections.abc import MutableSequence")))))))))
 
 (define-public python-louvain
   (package



reply via email to

[Prev in Thread] Current Thread [Next in Thread]