gnu: python-on-guile: Update to 1.2.3.4.

* gnu/packages/guile-xyz.scm (python-on-guile): Update to 1.2.3.
[source]: Download from <https://gitlab.com/python-on-guile/python-on-guile>.
[inputs]: Change from GUILE-2.2 to GUILE-3.0.
[arguments]: Add phase augment-GUILE_LOAD_PATH.
This commit is contained in:
Marius Bakke 2020-06-23 16:32:33 +02:00
parent 09f0bc87a9
commit ac94458485
No known key found for this signature in database
GPG key ID: A2A06DF2A33A54FA

View file

@ -2572,29 +2572,33 @@ serializing continuations or delimited continuations.")
(license license:lgpl2.0+))) (license license:lgpl2.0+)))
(define-public python-on-guile (define-public python-on-guile
(let ((commit "00a51a23247f1edc4ae8eda72b30df5cd7d0015f")
(revision "3"))
(package (package
(name "python-on-guile") (name "python-on-guile")
(version (git-version "0.1.0" revision commit)) (version "1.2.3.4")
(home-page "https://gitlab.com/python-on-guile/python-on-guile")
(source (origin (source (origin
(method git-fetch) (method git-fetch)
(uri (git-reference (uri (git-reference (url home-page)
(url "https://git.elephly.net/software/python-on-guile.git") (commit (string-append "v" version))))
(commit commit)))
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 (base32
"03rpnqr08rqr3gay128g564rwk8w4jbj28ss6b46z1d4vjs4nk68")))) "1qn5f79z43jh0rqh39a0qal81nsnw3cd5pj0d1j5cm3nhj5s64a7"))))
(build-system gnu-build-system) (build-system gnu-build-system)
(arguments (arguments
`(#:parallel-build? #f ;not supported `(#:parallel-build? #f ;not supported
#:make-flags '("GUILE_AUTO_COMPILE=0") ;to prevent guild warnings #:make-flags '("GUILE_AUTO_COMPILE=0") ;to prevent guild warnings
#:phases #:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(add-after 'unpack 'chdir (add-after 'unpack 'chdir
(lambda _ (chdir "modules") #t)) (lambda _ (chdir "modules") #t))
(add-after 'chdir 'augment-GUILE_LOAD_PATH
(lambda _
;; TODO: It would be better to patch the Makefile.
(setenv "GUILE_LOAD_PATH"
(string-append ".:"
(getenv "GUILE_LOAD_PATH")))
#t))
(add-after 'install 'wrap (add-after 'install 'wrap
(lambda* (#:key outputs #:allow-other-keys) (lambda* (#:key outputs #:allow-other-keys)
;; Wrap the 'python' executable so it can find its ;; Wrap the 'python' executable so it can find its
@ -2607,7 +2611,7 @@ serializing continuations or delimited continuations.")
(,(getenv "GUILE_LOAD_COMPILED_PATH")))) (,(getenv "GUILE_LOAD_COMPILED_PATH"))))
#t)))))) #t))))))
(inputs (inputs
`(("guile" ,guile-2.2))) `(("guile" ,guile-3.0)))
(propagated-inputs (propagated-inputs
`(("guile-persist" ,guile-persist) `(("guile-persist" ,guile-persist)
("guile-readline" ,guile-readline) ("guile-readline" ,guile-readline)
@ -2617,12 +2621,11 @@ serializing continuations or delimited continuations.")
("automake" ,automake) ("automake" ,automake)
("libtool" ,libtool) ("libtool" ,libtool)
("pkg-config" ,pkg-config))) ("pkg-config" ,pkg-config)))
(home-page "https://gitlab.com/python-on-guile/python-on-guile/")
(synopsis "Python implementation in Guile") (synopsis "Python implementation in Guile")
(description (description
"This package allows you to compile a Guile Python file to any target "This package allows you to compile a Guile Python file to any target
from @code{tree-il}.") from @code{tree-il}.")
(license license:lgpl2.0+)))) (license license:lgpl2.0+)))
(define-public guile-file-names (define-public guile-file-names
(package (package