gnu: mypaint: Make compatible with Python 3.11.

* gnu/packages/image.scm (mypaint)[arguments]: Add phase
'python3.11-compatibility.

Change-Id: I4e103ad169148127c388a40b999b1a0ae4868f4e
This commit is contained in:
Ricardo Wurmus 2025-03-23 13:54:09 +01:00 committed by Andreas Enge
parent 96d6060e7c
commit 589a74c25a
No known key found for this signature in database
GPG key ID: F7D5C9BF765C61E3

View file

@ -2761,6 +2761,10 @@ GIF, TIFF, WEBP, BMP, PNG, XPM formats.")
(guix build utils))
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'python3.11-compatibility
(lambda _
(substitute* "setup.py"
(("\"rU\"") "\"r\""))))
(add-after 'install 'glib-or-gtk-wrap
(assoc-ref glib-or-gtk:%standard-phases 'glib-or-gtk-wrap))
(add-after 'install 'wrap-program