gnu: python-duniterpy: Build documentation.

* gnu/packages/finance.scm (python-duniterpy)[arguments]: Build and install
  documentation.
master
Nicolas Goaziou 2018-12-19 23:49:15 +01:00
parent 4b3d6b899f
commit 42a57df874
No known key found for this signature in database
GPG Key ID: DA00B4F048E92F2D
1 changed files with 16 additions and 1 deletions

View File

@ -862,7 +862,22 @@ Luhn and family of ISO/IEC 7064 check digit algorithms. ")
(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)