summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorarkhan <arkhan@riseup.net>2022-07-11 09:54:46 -0500
committerLudovic Courtès <ludo@gnu.org>2022-07-12 01:17:45 +0200
commitdee9a32888ed1d323a3712480c30f097368a552a (patch)
tree2032570eda8873be2cc5cad245a453acb281a713 /gnu
parent5ecbf5b1637762281992befec7fa53f966e5d0b1 (diff)
gnu: xonsh: Update to 0.13.0
* gnu/packages/shells.scm (xonsh): Update to 0.13.0. [source]: Rewrite snippet as a gexp. [native-inputs]: Add python-setuptools, python-wheel [inputs]: Add python-distro, python-pygments, python-pyperclip, python-setproctitle Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/shells.scm46
1 files changed, 26 insertions, 20 deletions
diff --git a/gnu/packages/shells.scm b/gnu/packages/shells.scm
index 9fe0ed8e27c..2caefd3dd01 100644
--- a/gnu/packages/shells.scm
+++ b/gnu/packages/shells.scm
@@ -57,6 +57,7 @@
57 #:use-module (gnu packages perl) 57 #:use-module (gnu packages perl)
58 #:use-module (gnu packages pkg-config) 58 #:use-module (gnu packages pkg-config)
59 #:use-module (gnu packages python) 59 #:use-module (gnu packages python)
60 #:use-module (gnu packages python-build)
60 #:use-module (gnu packages python-xyz) 61 #:use-module (gnu packages python-xyz)
61 #:use-module (gnu packages readline) 62 #:use-module (gnu packages readline)
62 #:use-module (gnu packages rust) 63 #:use-module (gnu packages rust)
@@ -64,6 +65,7 @@
64 #:use-module (gnu packages scheme) 65 #:use-module (gnu packages scheme)
65 #:use-module (gnu packages tls) 66 #:use-module (gnu packages tls)
66 #:use-module (gnu packages version-control) 67 #:use-module (gnu packages version-control)
68 #:use-module (gnu packages xdisorg)
67 #:use-module (gnu packages xorg) 69 #:use-module (gnu packages xorg)
68 #:use-module (gnu packages texinfo) 70 #:use-module (gnu packages texinfo)
69 #:use-module (guix build-system cargo) 71 #:use-module (guix build-system cargo)
@@ -545,32 +547,29 @@ ksh, and tcsh.")
545(define-public xonsh 547(define-public xonsh
546 (package 548 (package
547 (name "xonsh") 549 (name "xonsh")
548 (version "0.12.4") 550 (version "0.13.0")
549 (source 551 (source
550 (origin 552 (origin
551 (method url-fetch) 553 (method url-fetch)
552 (uri (pypi-uri "xonsh" version)) 554 (uri (pypi-uri "xonsh" version))
553 (sha256 555 (sha256
554 (base32 "0xlac84nsgs0052n2pw8np1smlgghrbd7p6yrcp7d5qh8zdr9lx3")) 556 (base32 "12ayz1kw2ag3r407j0lng2kfp75im8xqap1nvpmpa0lmsx8wk7ll"))
555 (modules '((guix build utils))) 557 (modules '((guix build utils)))
556 (snippet 558 (snippet
557 `(begin 559 #~(begin
558 ;; Delete bundled PLY. 560 (substitute* "setup.py"
559 (delete-file-recursively "xonsh/ply") 561 (("\"xonsh\\.ply\\.ply\",") ""))
560 (substitute* "setup.py" 562 ;; Use our properly packaged PLY instead.
561 (("\"xonsh\\.ply\\.ply\",") "")) 563 (substitute* (list "setup.py"
562 ;; Use our properly packaged PLY instead. 564 "tests/test_lexer.py"
563 (substitute* (list "setup.py" 565 "xonsh/lexer.py"
564 "tests/test_lexer.py" 566 "xonsh/parsers/base.py"
565 "xonsh/__amalgam__.py" 567 "xonsh/parsers/completion_context.py"
566 "xonsh/lexer.py" 568 "xonsh/xonfig.py")
567 "xonsh/parsers/base.py" 569 (("from xonsh\\.ply\\.(.*) import" _ module)
568 "xonsh/parsers/completion_context.py" 570 (format #f "from ~a import" module))
569 "xonsh/xonfig.py") 571 (("from xonsh\\.ply import") "import"))
570 (("from xonsh\\.ply\\.(.*) import" _ module) 572 #t))))
571 (format #f "from ~a import" module))
572 (("from xonsh\\.ply import") "import"))
573 #t))))
574 (build-system python-build-system) 573 (build-system python-build-system)
575 (arguments 574 (arguments
576 (list ;; TODO Try running run the test suite. 575 (list ;; TODO Try running run the test suite.
@@ -586,8 +585,15 @@ ksh, and tcsh.")
586 "--invalidation-mode=unchecked-hash" out) 585 "--invalidation-mode=unchecked-hash" out)
587 (invoke "python" "setup.py" "install" "--root=/" 586 (invoke "python" "setup.py" "install" "--root=/"
588 (string-append "--prefix=" out)))))))) 587 (string-append "--prefix=" out))))))))
588 (native-inputs
589 (list python-setuptools ;needed at build time
590 python-wheel))
589 (inputs 591 (inputs
590 (list python-ply)) 592 (list python-distro
593 python-ply
594 python-pygments
595 python-pyperclip
596 python-setproctitle))
591 (home-page "https://xon.sh/") 597 (home-page "https://xon.sh/")
592 (synopsis "Python-ish shell") 598 (synopsis "Python-ish shell")
593 (description 599 (description