mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 23:46:13 -05:00
gnu: python-duniterpy: Build documentation.
* gnu/packages/finance.scm (python-duniterpy)[arguments]: Build and install documentation.
This commit is contained in:
parent
4b3d6b899f
commit
42a57df874
1 changed files with 16 additions and 1 deletions
|
@ -862,7 +862,22 @@ (define-public python-duniterpy
|
|||
(build-system python-build-system)
|
||||
(arguments
|
||||
;; Tests fail with "AttributeError: module 'attr' has no attribute 's'".
|
||||
`(#:tests? #f))
|
||||
`(#:tests? #f
|
||||
#:phases
|
||||
(modify-phases %standard-phases
|
||||
(add-after 'build 'build-documentation
|
||||
(lambda _
|
||||
(invoke "make" "docs")))
|
||||
(add-after 'build-documentation 'install-documentation
|
||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||
(let* ((out (assoc-ref outputs "out"))
|
||||
(doc (string-append out "/share/doc/" ,name)))
|
||||
(mkdir-p doc)
|
||||
(copy-recursively "docs/_build/html" doc))
|
||||
#t)))))
|
||||
(native-inputs
|
||||
`(("python-sphinx" ,python-sphinx)
|
||||
("python-sphinx-rtd-theme" ,python-sphinx-rtd-theme)))
|
||||
(propagated-inputs
|
||||
`(("python-aiohttp" ,python-aiohttp)
|
||||
("python-attr" ,python-attr)
|
||||
|
|
Loading…
Reference in a new issue