[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
72/103: gnu: python-pathpy: Build documentation.
From: |
Hartmut Goebel |
Subject: |
72/103: gnu: python-pathpy: Build documentation. |
Date: |
Tue, 25 Oct 2016 17:47:55 +0000 (UTC) |
htgoebel pushed a commit to branch wip-python-build-system
in repository guix.
commit 18b69f58050cfa1179f0553fbe290703d8ce8581
Author: Hartmut Goebel <address@hidden>
Date: Sun Oct 16 21:48:40 2016 +0200
gnu: python-pathpy: Build documentation.
* gnu/packages/python.scm (python-pathpy, python2-pathpy)
[output] Add output "doc".
[native-inputs]: Add python-sphinx and python-rst.linker
[build-doc], [install-doc]: New build phases.
---
gnu/packages/python.scm | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index b5ad08f..cf17807 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -4148,13 +4148,33 @@ them as the version argument or in a SCM managed file.")
"path.py/path.py-" version ".tar.gz"))
(sha256
(base32 "1p8s1l2vfkqhqxdhqlj0g1jjw4f1as2frr35sjcpjjpd5a89y41f"))))
+ (outputs '("out" "doc"))
(build-system python-build-system)
(propagated-inputs
`(("python-appdirs" ,python-appdirs)))
(native-inputs
`(("python-setuptools-scm" ,python-setuptools-scm)
+ ("python-sphinx" ,python-sphinx)
+ ("python-rst.linker" ,python-rst.linker)
("python-pytest" ,python-pytest)
("python-pytest-runner" ,python-pytest-runner)))
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-after 'build 'build-doc
+ (lambda _
+ (setenv "LANG" "en_US.UTF-8")
+ (zero? (system* "python" "setup.py" "build_sphinx"))))
+ (add-after 'install 'install-doc
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((data (string-append (assoc-ref outputs "doc") "/share"))
+ (doc (string-append data "/doc/" ,name "-" ,version))
+ (html (string-append doc "/html")))
+ (mkdir-p html)
+ (for-each (lambda (file)
+ (copy-file file (string-append doc "/" file)))
+ '("README.rst" "CHANGES.rst"))
+ (copy-recursively "build/sphinx/html" html)))))))
(home-page "http://github.com/jaraco/path.py")
(synopsis "Python module wrapper for built-in os.path")
(description
- 49/103: gnu: thefuck: Fix build., (continued)
- 49/103: gnu: thefuck: Fix build., Hartmut Goebel, 2016/10/25
- 51/103: gnu: python-pandas: Fix build., Hartmut Goebel, 2016/10/25
- 44/103: gnu: python-numpy-bootstrap, python-numpy: Fix build., Hartmut Goebel, 2016/10/25
- 41/103: gnu: python-zope-testing: Remove needless input., Hartmut Goebel, 2016/10/25
- 58/103: gnu: python-statsmodels: Fix build, Hartmut Goebel, 2016/10/25
- 59/103: gnu: python-cov-core: Fix imports., Hartmut Goebel, 2016/10/25
- 63/103: gnu: python-joblib: Add comment., Hartmut Goebel, 2016/10/25
- 50/103: gnu: openstack: Correct inputs., Hartmut Goebel, 2016/10/25
- 61/103: gnu: python-oauthlib, python-oauthlib2: Correct inputs., Hartmut Goebel, 2016/10/25
- 70/103: gnu: python-numpydoc: Correct inputs., Hartmut Goebel, 2016/10/25
- 72/103: gnu: python-pathpy: Build documentation.,
Hartmut Goebel <=
- 73/103: gnu: python-zope-interface: Correct inputs., Hartmut Goebel, 2016/10/25
- 78/103: gnu: python-wsgi-intercept: Correct inputs., Hartmut Goebel, 2016/10/25
- 56/103: gnu: python-testscenarios: remove needless input "mimetools"., Hartmut Goebel, 2016/10/25
- 64/103: gnu: python-feedgenerator: Remove python byte-code files from source., Hartmut Goebel, 2016/10/25
- 52/103: gnu: python-scripttest: Correct inputs., Hartmut Goebel, 2016/10/25
- 55/103: gnu: python-setuptools: remove pre-built binaries from source., Hartmut Goebel, 2016/10/25
- 60/103: gnu: python-pyjwt: Add missing inputs and enable test-suite., Hartmut Goebel, 2016/10/25
- 62/103: gnu: python-joblib: Remove python byte-code files from source., Hartmut Goebel, 2016/10/25
- 19/103: gnu: Fix python inputs, part 1: all inputs become propagated-inputs., Hartmut Goebel, 2016/10/25
- 74/103: gnu: python-zope-location: Correct inputs., Hartmut Goebel, 2016/10/25