diff options
author | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2018-12-19 23:49:15 +0100 |
---|---|---|
committer | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2018-12-19 23:49:15 +0100 |
commit | 42a57df874aa37ff6a54d952abc996a6138b3b06 (patch) | |
tree | a59c309cfaebe9a7ab273db556c2158c6f764fbf /gnu/packages | |
parent | 4b3d6b899fe93d78ec8d4063e526d17b28ab3496 (diff) | |
download | patches-42a57df874aa37ff6a54d952abc996a6138b3b06.tar patches-42a57df874aa37ff6a54d952abc996a6138b3b06.tar.gz |
gnu: python-duniterpy: Build documentation.
* gnu/packages/finance.scm (python-duniterpy)[arguments]: Build and install
documentation.
Diffstat (limited to 'gnu/packages')
-rw-r--r-- | gnu/packages/finance.scm | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/gnu/packages/finance.scm b/gnu/packages/finance.scm index b644f2fa95..a87d24fccf 100644 --- a/gnu/packages/finance.scm +++ b/gnu/packages/finance.scm @@ -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) |