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
This commit is contained in:
Efraim Flashner 2023-12-05 13:40:04 +02:00
parent 9d1055c409
commit 7e795eae15
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -1690,7 +1690,13 @@ (define-public python-imgviz
(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