guix-commits
[Top][All Lists]
Advanced

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

01/01: gnu: nml: Fix for newer pillow version.


From: guix-commits
Subject: 01/01: gnu: nml: Fix for newer pillow version.
Date: Sat, 7 Sep 2019 14:15:53 -0400 (EDT)

roptat pushed a commit to branch master
in repository guix.

commit e877f4d012342cc5fa916652b3846e40fdcd0491
Author: Julien Lepiller <address@hidden>
Date:   Sat Sep 7 20:09:25 2019 +0200

    gnu: nml: Fix for newer pillow version.
    
    * gnu/packages/game-development.scm (nml)[arguments]: Add a phase to fix
    for newer pillow.
---
 gnu/packages/game-development.scm | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/gnu/packages/game-development.scm 
b/gnu/packages/game-development.scm
index 7eac935..bb4c1d2 100644
--- a/gnu/packages/game-development.scm
+++ b/gnu/packages/game-development.scm
@@ -314,6 +314,16 @@ provide connectivity for client applications written in 
any language.")
         (base32
          "1pmvvm3sgnpngfa7884mqhq3fwdjh9sr0ca07ypnidcg0y341w53"))))
     (build-system python-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-before 'build 'fix-pillow
+           (lambda _
+             ;; pillow's version is not in PIL.Image.VERSION anymore
+             (substitute* "nml/version_info.py"
+               (("from PIL import Image") "import PIL")
+               (("Image.VERSION") "PIL.__version__"))
+             #t)))))
     (propagated-inputs
      `(("python-pillow" ,python-pillow)
        ("python-ply" ,python-ply)))



reply via email to

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