diff mbox series

[bug#55378] gnu: xonsh: Update to 0.12.4

Message ID 352d02ed7b82ddebdcaeba011f93aaf4f4a0528c@disroot.org
State New
Headers show
Series [bug#55378] gnu: xonsh: Update to 0.12.4 | expand

Checks

Context Check Description
cbaines/applying patch fail View Laminar job
cbaines/issue success View issue

Commit Message

kiasoc5--- via Guix-patches via May 11, 2022, 11:55 p.m. UTC
From 70d42eba0c1f764956ad319853a5a1da7eb3da2a Mon Sep 17 00:00:00 2001
From: arkhan <arkhan@riseup.net mailto:arkhan@riseup.net >
Date: Wed, 11 May 2022 16:04:40 -0500
Subject: [PATCH] Update xonsh 0.12.4

---
gnu/packages/shells.scm | 21 +++++++++++++++------
1 file changed, 15 insertions(+), 6 deletions(-)

--
2.36.0

Comments

Ludovic Courtès May 13, 2022, 3:50 p.m. UTC | #1
Hi,

arkhan@disroot.org skribis:

>>From 70d42eba0c1f764956ad319853a5a1da7eb3da2a Mon Sep 17 00:00:00 2001
> From: arkhan <arkhan@riseup.net mailto:arkhan@riseup.net >
> Date: Wed, 11 May 2022 16:04:40 -0500
> Subject: [PATCH] Update xonsh 0.12.4
>
> ---
> gnu/packages/shells.scm | 21 +++++++++++++++------
> 1 file changed, 15 insertions(+), 6 deletions(-)

I applied and tweaked the commit log.  Thanks!

Ludo’.
diff mbox series

Patch

diff --git a/gnu/packages/shells.scm b/gnu/packages/shells.scm
index 00a0ef363d..ce4cdc765d 100644
--- a/gnu/packages/shells.scm
+++ b/gnu/packages/shells.scm
@@ -545,13 +545,13 @@  (define-public zsh
(define-public xonsh
   (package
     (name "xonsh")
-    (version "0.9.27")
+    (version "0.12.4")
     (source
       (origin
         (method url-fetch)
         (uri (pypi-uri "xonsh" version))
         (sha256
-          (base32 "1maz7yvb5py91n699yqsna81x2i25mvrqkrcn7h7870nxd87ral2"))
+          (base32 "0xlac84nsgs0052n2pw8np1smlgghrbd7p6yrcp7d5qh8zdr9lx3"))
         (modules '((guix build utils)))
         (snippet
          `(begin
@@ -565,6 +565,7 @@  (define-public xonsh
                                "xonsh/__amalgam__.py"
                                "xonsh/lexer.py"
                                "xonsh/parsers/base.py"
+                               "xonsh/parsers/completion_context.py"
                                "xonsh/xonfig.py")
               (("from xonsh\\.ply\\.(.*) import" _ module)
                (format #f "from ~a import" module))
@@ -572,10 +573,18 @@  (define-public xonsh
             #t))))
     (build-system python-build-system)
     (arguments
-     '(;; TODO Try running run the test suite.
-       ;; See 'requirements-tests.txt' in the source distribution for more
-       ;; information.
-       #:tests? #f))
+     (list ;; TODO Try running run the test suite.
+           ;; See 'requirements-tests.txt' in the source distribution for more
+           ;; information.
+           #:tests? #f
+           #:phases
+           #~(modify-phases %standard-phases
+               (replace 'install
+                 (lambda* (#:key outputs #:allow-other-keys)
+                   (let* ((out (assoc-ref outputs "out")))
+                     (invoke "python" "-m" "compileall" "--invalidation-mode=unchecked-hash" out)
+                     (invoke "python" "setup.py" "install" "--root=/"
+                             (string-append "--prefix=" out))))))))
     (inputs
      (list python-ply))
     (home-page "https://xon.sh/")