guix-commits
[Top][All Lists]
Advanced

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

05/10: gnu: python-imgviz: Adjust for newer python.


From: guix-commits
Subject: 05/10: gnu: python-imgviz: Adjust for newer python.
Date: Tue, 5 Dec 2023 08:11:41 -0500 (EST)

efraim pushed a commit to branch master
in repository guix.

commit 7e795eae155a0fea0739584020fb0945c4d1a1d0
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Tue Dec 5 13:40:04 2023 +0200

    gnu: python-imgviz: Adjust for newer python.
    
    * gnu/packages/image-processing.scm (python-imgviz)[source]: Add snippet
    to adjust python module imports.
    
    Change-Id: I50b39fa5acfc766eb9f18658dbfc3053473e0287
---
 gnu/packages/image-processing.scm | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/image-processing.scm 
b/gnu/packages/image-processing.scm
index 36fee7e276..306da962cc 100644
--- a/gnu/packages/image-processing.scm
+++ b/gnu/packages/image-processing.scm
@@ -1690,7 +1690,13 @@ purposes.")
              (commit (string-append "v" version))))
        (file-name (git-file-name name version))
        (sha256
-        (base32 "1bm0wdv5p26i8nl4kx3145cz553v401sgbpgc96sddzjfmfiydcw"))))
+        (base32 "1bm0wdv5p26i8nl4kx3145cz553v401sgbpgc96sddzjfmfiydcw"))
+      (snippet
+       #~(begin (use-modules (guix build utils))
+                (substitute* "imgviz/draw.py"
+                  (("collections\\.Iterable") "collections.abc.Iterable"))
+                (substitute* "imgviz/tile.py"
+                  (("collections\\.Sequence") "collections.abc.Sequence"))))))
     (build-system python-build-system)
     (arguments
      `(#:phases



reply via email to

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