mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 15:36:20 -05:00
gnu: xonsh: Improve package style.
* gnu/packages/shells.scm (xonsh)[source](snippet): Remove trailing #t. [arguments]<#:phases>: Use #$output rather than the outputs alist. Change-Id: I30c1b1d8e64ba6bbce61e47cbfec91de3d3df7ae
This commit is contained in:
parent
5dad9f6701
commit
2b276ae80f
1 changed files with 6 additions and 8 deletions
|
@ -576,8 +576,7 @@ (define-public xonsh
|
||||||
"xonsh/xonfig.py")
|
"xonsh/xonfig.py")
|
||||||
(("from xonsh\\.ply\\.(.*) import" _ module)
|
(("from xonsh\\.ply\\.(.*) import" _ module)
|
||||||
(format #f "from ~a import" module))
|
(format #f "from ~a import" module))
|
||||||
(("from xonsh\\.ply import") "import"))
|
(("from xonsh\\.ply import") "import"))))))
|
||||||
#t))))
|
|
||||||
(build-system pyproject-build-system)
|
(build-system pyproject-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
;; Some tests are failing for reasons like not accessing parent directory
|
;; Some tests are failing for reasons like not accessing parent directory
|
||||||
|
@ -613,12 +612,11 @@ (define-public xonsh
|
||||||
#:phases
|
#:phases
|
||||||
#~(modify-phases %standard-phases
|
#~(modify-phases %standard-phases
|
||||||
(replace 'install
|
(replace 'install
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(lambda _
|
||||||
(let* ((out (assoc-ref outputs "out")))
|
(invoke "python" "-m" "compileall"
|
||||||
(invoke "python" "-m" "compileall"
|
"--invalidation-mode=unchecked-hash" #$output)
|
||||||
"--invalidation-mode=unchecked-hash" out)
|
(invoke "python" "setup.py" "install" "--root=/"
|
||||||
(invoke "python" "setup.py" "install" "--root=/"
|
(string-append "--prefix=" #$output))))
|
||||||
(string-append "--prefix=" out)))))
|
|
||||||
;; Some tests run os.mkdir().
|
;; Some tests run os.mkdir().
|
||||||
(add-before 'check 'writable-home
|
(add-before 'check 'writable-home
|
||||||
(lambda _
|
(lambda _
|
||||||
|
|
Loading…
Reference in a new issue