gnu: xonsh: Update to 0.9.18.
* gnu/packages/shells.scm (xonsh): Update to 0.9.18. [snippet]: Adapt to more aggressive bundling.
This commit is contained in:
parent
5a4d48af52
commit
72faca2c50
1 changed files with 15 additions and 5 deletions
|
@ -493,21 +493,31 @@ ksh, and tcsh.")
|
||||||
(define-public xonsh
|
(define-public xonsh
|
||||||
(package
|
(package
|
||||||
(name "xonsh")
|
(name "xonsh")
|
||||||
(version "0.6.2")
|
(version "0.9.18")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (pypi-uri "xonsh" version))
|
(uri (pypi-uri "xonsh" version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"0c2bbmdg0n10q54vq9k1z5n53l0mh1hb1q5xprfhilvrbr6hlcwr"))
|
"1h4rrwzwiwkyi9p49sjn97rl39fqq2r23hchzsw0s3fcwa7m8fkj"))
|
||||||
(modules '((guix build utils)))
|
(modules '((guix build utils)))
|
||||||
(snippet
|
(snippet
|
||||||
`(begin
|
`(begin
|
||||||
;; Delete bundled ply.
|
;; Delete bundled PLY.
|
||||||
(delete-file-recursively "xonsh/ply")
|
(delete-file-recursively "xonsh/ply")
|
||||||
(substitute* '("setup.py")
|
(substitute* "setup.py"
|
||||||
(("'xonsh\\.ply\\.ply',") ""))
|
(("\"xonsh\\.ply\\.ply\",") ""))
|
||||||
|
;; Use our properly packaged PLY instead.
|
||||||
|
(substitute* (list "setup.py"
|
||||||
|
"tests/test_lexer.py"
|
||||||
|
"xonsh/__amalgam__.py"
|
||||||
|
"xonsh/lexer.py"
|
||||||
|
"xonsh/parsers/base.py"
|
||||||
|
"xonsh/xonfig.py")
|
||||||
|
(("from xonsh\\.ply\\.(.*) import" _ module)
|
||||||
|
(format #f "from ~a import" module))
|
||||||
|
(("from xonsh\\.ply import") "import"))
|
||||||
#t))))
|
#t))))
|
||||||
(build-system python-build-system)
|
(build-system python-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
|
|
Reference in a new issue