mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: nml: Update to 0.5.2.
* gnu/packages/game-development.scm (nml): Update to 0.5.2. [source]: Fetch from pypi. [arguments]: Remove 'fix-pillow' phase and disable tests. [home-page]: Update URL.
This commit is contained in:
parent
6562a3883f
commit
362ae4313e
1 changed files with 8 additions and 14 deletions
|
@ -313,30 +313,24 @@ provide connectivity for client applications written in any language.")
|
||||||
(define-public nml
|
(define-public nml
|
||||||
(package
|
(package
|
||||||
(name "nml")
|
(name "nml")
|
||||||
(version "0.4.5")
|
(version "0.5.2")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (string-append "http://bundles.openttdcoop.org/nml/releases/"
|
(uri (pypi-uri "nml" version))
|
||||||
version "/nml-" version ".tar.gz"))
|
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"1pmvvm3sgnpngfa7884mqhq3fwdjh9sr0ca07ypnidcg0y341w53"))))
|
"1lwf5sc5qqzrkxfx5wkkj3yh2j2nzh5r599ly5psy8yw92km24hy"))))
|
||||||
(build-system python-build-system)
|
(build-system python-build-system)
|
||||||
|
;; TODO: Fix test that fails with
|
||||||
|
;; "AttributeError: partially initialized module 'nml.nmlop' has no
|
||||||
|
;; attribute 'ADD' (most likely due to a circular import)"
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases
|
'(#:tests? #f))
|
||||||
(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
|
(propagated-inputs
|
||||||
`(("python-pillow" ,python-pillow)
|
`(("python-pillow" ,python-pillow)
|
||||||
("python-ply" ,python-ply)))
|
("python-ply" ,python-ply)))
|
||||||
(home-page "https://dev.openttdcoop.org/projects/nml")
|
(home-page "https://github.com/OpenTTD/nml")
|
||||||
(synopsis "NML compiler")
|
(synopsis "NML compiler")
|
||||||
(description
|
(description
|
||||||
"@dfn{NewGRF Meta Language} (NML) is a python-based compiler, capable of
|
"@dfn{NewGRF Meta Language} (NML) is a python-based compiler, capable of
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue