Skip to content
Snippets Groups Projects
Commit 50a7963a authored by Leo Famulari's avatar Leo Famulari
Browse files

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.
parent f9263d9a
No related branches found
No related tags found
No related merge requests found
...@@ -340,11 +340,25 @@ (define-public python-acme ...@@ -340,11 +340,25 @@ (define-public python-acme
(display "\n[easy_install]\nzip_ok = 0\n" (display "\n[easy_install]\nzip_ok = 0\n"
port) port)
(close-port port) (close-port port)
#t)))))) #t)))
;; TODO: Add optional inputs for testing and building documentation. (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 (native-inputs
`(("python-mock" ,python-mock) `(("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 (propagated-inputs
`(("python-ndg-httpsclient" ,python-ndg-httpsclient) `(("python-ndg-httpsclient" ,python-ndg-httpsclient)
("python-werkzeug" ,python-werkzeug) ("python-werkzeug" ,python-werkzeug)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment