[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] gnu: Build and install xonsh docs.
From: |
Danny Milosavljevic |
Subject: |
[PATCH] gnu: Build and install xonsh docs. |
Date: |
Fri, 7 Oct 2016 12:38:21 +0200 |
* gnu/packages/shells.scm (xonsh): Changed.
---
gnu/packages/shells.scm | 29 ++++++++++++++++++++++++++---
1 file changed, 26 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/shells.scm b/gnu/packages/shells.scm
index 6d510c2..99d1f3e 100644
--- a/gnu/packages/shells.scm
+++ b/gnu/packages/shells.scm
@@ -291,10 +291,11 @@ ksh, and tcsh.")
(source
(origin
(method url-fetch)
- (uri (pypi-uri "xonsh" version))
+ (uri (string-append "https://github.com/xonsh/xonsh/archive/"
+ version ".tar.gz"))
(sha256
(base32
- "0byxd9kjl99q2pyvjh9jy18l0di1i35wr0qqgnw4i6jh6ig3zcki"))
+ "0v0l3bpyxh2fyhybycjr22sh9v0ggswgmbm9gsyf7yvkrcr5fqzr"))
(modules '((guix build utils)))
(snippet
`(begin
@@ -304,8 +305,30 @@ ksh, and tcsh.")
(("'xonsh\\.ply',") ""))
#t))))
(build-system python-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-after 'build 'build-docs
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let ((out (assoc-ref outputs "out")))
+ ;; Make it find "xonsh" module
+ (setenv "PYTHONPATH" (string-append (getcwd) ":" (getenv
"PYTHONPATH")))
+ (zero? (system* "make" "-C" "docs" "html")))))
+ (add-after 'install 'install-docs
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (docout (string-append out "/share/doc/xonsh")))
+ (mkdir-p docout)
+ (copy-recursively "docs/_build/html" docout)))))))
+ (native-inputs
+ `(("python-numpydoc" ,python-numpydoc)
+ ("python-sphinx" ,python-sphinx)
+ ("python-sphinx-cloud-sptheme"
+ ,python-sphinx-cloud-sptheme)))
(inputs
- `(("python-ply" ,python-ply)))
+ ;; TODO jupyter distro
+ `(("python-ply" ,python-ply)
+ ("python-prompt-toolkit" ,python-prompt-toolkit)))
(home-page "http://xon.sh/")
(synopsis "Python-ish shell")
(description
- [PATCH] gnu: Build and install xonsh docs.,
Danny Milosavljevic <=