[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
72/104: gnu: python-pathpy: Build documentation.
From: |
Hartmut Goebel |
Subject: |
72/104: gnu: python-pathpy: Build documentation. |
Date: |
Tue, 15 Nov 2016 21:37:06 +0000 (UTC) |
htgoebel pushed a commit to branch python-build-system
in repository guix.
commit 2887700e4d6e9d43df97d9b11d9aba935951a3e8
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 a261400..62c5eca 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -4398,13 +4398,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
- 12/104: gnu: Remove python-setuptools and python2-setuptools from inputs (part 1a), (continued)
- 12/104: gnu: Remove python-setuptools and python2-setuptools from inputs (part 1a), Hartmut Goebel, 2016/11/15
- 17/104: gnu: Remove python-setuptools and python2-setuptools from inputs (part 4b), Hartmut Goebel, 2016/11/15
- 46/104: gnu: python-scipy: Fix build., Hartmut Goebel, 2016/11/15
- 53/104: gnu: python-subunit, python-testrepository: Fix inputs, Hartmut Goebel, 2016/11/15
- 44/104: gnu: python-numpy-bootstrap, python-numpy: Fix build., Hartmut Goebel, 2016/11/15
- 64/104: gnu: python-feedgenerator: Remove python byte-code files from source., Hartmut Goebel, 2016/11/15
- 67/104: gnu: python2-scikit-image: Remove needless propagated-input., Hartmut Goebel, 2016/11/15
- 75/104: gnu: python-configobj: Correct inputs., Hartmut Goebel, 2016/11/15
- 76/104: gnu: python-zope-security: Correct inputs., Hartmut Goebel, 2016/11/15
- 55/104: gnu: python-setuptools: remove pre-built binaries from source., Hartmut Goebel, 2016/11/15
- 72/104: gnu: python-pathpy: Build documentation.,
Hartmut Goebel <=
- 77/104: gnu: python-websocket-client: Correct inputs., Hartmut Goebel, 2016/11/15
- 83/104: gnu: python-sphinx-repoze-autointerface: Remove needless input., Hartmut Goebel, 2016/11/15
- 81/104: gnu: Remove some outdated comments., Hartmut Goebel, 2016/11/15
- 85/104: gnu: python-responses: Correct inputs, Hartmut Goebel, 2016/11/15
- 82/104: gnu: python-celery: Remove needless inputs., Hartmut Goebel, 2016/11/15
- 88/104: gnu: python-freezegun: Correct input., Hartmut Goebel, 2016/11/15
- 92/104: gnu: khal: Fix build., Hartmut Goebel, 2016/11/15
- 95/104: gnu: python-pytest-django: Remove needless propagated input "python-py"., Hartmut Goebel, 2016/11/15
- 93/104: gnu: python2-warpedlmm: Remove phase remove-bin-directory., Hartmut Goebel, 2016/11/15
- 90/104: gnu: python-sphinxcontrib-newsfeed: Remove needless input., Hartmut Goebel, 2016/11/15