diff options
author | Leo Famulari <leo@famulari.name> | 2016-02-16 15:11:19 -0500 |
---|---|---|
committer | Leo Famulari <leo@famulari.name> | 2016-02-22 00:40:25 -0500 |
commit | 50a7963aeb5d9062fca7d0af152ea3c9df88b3c6 (patch) | |
tree | ebbcbbcfa509cd2008801b5eb290b80f9d605cde | |
parent | f9263d9a90e457431ed895e7d20e1a45fb4f2323 (diff) | |
download | guix-50a7963aeb5d9062fca7d0af152ea3c9df88b3c6.tar guix-50a7963aeb5d9062fca7d0af152ea3c9df88b3c6.tar.gz |
gnu: python-acme: Generate and install documentation.
* gnu/packages/tls.scm (acme)[arguments]: Add 'docs' phase.
[native-inputs]: Add python-sphinx, python-sphinxcontrib-programoutput,
python-sphinx-rtd-theme, python-setuptools, texinfo.
-rw-r--r-- | gnu/packages/tls.scm | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/gnu/packages/tls.scm b/gnu/packages/tls.scm index ba259c9434..57f0ca1114 100644 --- a/gnu/packages/tls.scm +++ b/gnu/packages/tls.scm @@ -340,11 +340,25 @@ security, and applying best practice development processes.") (display "\n[easy_install]\nzip_ok = 0\n" port) (close-port port) - #t)))))) - ;; TODO: Add optional inputs for testing and building documentation. + #t))) + (add-after 'install 'docs + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (man (string-append out "/share/man/man1")) + (info (string-append out "/info"))) + (and (zero? (system* "make" "-C" "docs" "man" "info")) + (install-file "docs/_build/texinfo/acme-python.info" info) + (install-file "docs/_build/man/acme-python.1" man) + #t))))))) + ;; TODO: Add optional inputs for testing. (native-inputs `(("python-mock" ,python-mock) - ("python-setuptools" ,python-setuptools))) + ;; For documentation + ("python-sphinx" ,python-sphinx) + ("python-sphinxcontrib-programoutput" ,python-sphinxcontrib-programoutput) + ("python-sphinx-rtd-theme" ,python-sphinx-rtd-theme) + ("python-setuptools" ,python-setuptools) + ("texinfo" ,texinfo))) (propagated-inputs `(("python-ndg-httpsclient" ,python-ndg-httpsclient) ("python-werkzeug" ,python-werkzeug) |