From: Marius Bakke <mbakke@fastmail.com>
To: guix-devel@gnu.org
Cc: Marius Bakke <mbakke@fastmail.com>
Subject: [PATCH 3/4] gnu: Add python-sphinx-argparse.
Date: Sun, 25 Sep 2016 22:17:27 +0100 [thread overview]
Message-ID: <20160925211728.7636-3-mbakke@fastmail.com> (raw)
In-Reply-To: <20160925211728.7636-1-mbakke@fastmail.com>
* gnu/packages/python.scm (python-sphinx-argparse,
python2-sphinx-argparse): New variables.
---
gnu/packages/python.scm | 45 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 45 insertions(+)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 4b8caea..bb28363 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -10967,3 +10967,48 @@ mobile-friendly responsive design.")
python-sphinx-bootstrap-theme)))
(native-inputs
`(("python2-setuptools" ,python2-setuptools)))))
+
+(define-public python-sphinx-argparse
+ (package
+ (name "python-sphinx-argparse")
+ (version "0.1.15")
+ (source (origin
+ (method url-fetch)
+ (uri (pypi-uri "sphinx-argparse" version))
+ (sha256
+ (base32
+ "14wdxq379xxnhw0kgf8z6jqdi0rd4k5y20jllyar9mxwwjblayvq"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:configure-flags '("--single-version-externally-managed" "--root=/")
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'adjust-tests
+ ;; Two tests compare the output of "py.test --help" and fail
+ ;; when it gets ".py.test-real" back, so we substitute it here.
+ (lambda _
+ (substitute* "test/test_parser.py"
+ (("py.test") ".py.test-real"))
+ #t))
+ (delete 'check)
+ (add-after 'install 'check
+ (lambda _ (zero? (system* "py.test" "-vv")))))))
+ (native-inputs
+ `(("python-pytest" ,python-pytest)))
+ (propagated-inputs
+ `(("python-sphinx" ,python-sphinx)
+ ("python-docutils" ,python-docutils)))
+ (home-page "https://github.com/ribozz/sphinx-argparse")
+ (synopsis "Sphinx extension to document argparse commands")
+ (description "Sphinx extension that automatically documents @code{argparse}
+commands and options.")
+ (license license:expat)
+ (properties `((python2-variant . ,(delay python2-sphinx-argparse))))))
+
+(define-public python2-sphinx-argparse
+ (let ((base (package-with-python2 (strip-python2-variant
+ python-sphinx-argparse))))
+ (package (inherit base)
+ (native-inputs
+ `(("python2-setuptools" ,python2-setuptools)
+ ,@(package-native-inputs base))))))
--
2.10.0
next prev parent reply other threads:[~2016-09-25 21:18 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-25 21:17 [PATCH 1/4] gnu: Add python-avro Marius Bakke
2016-09-25 21:17 ` [PATCH 2/4] gnu: Add python-sphinx-bootstrap-theme Marius Bakke
2016-09-26 9:35 ` Hartmut Goebel
2016-09-25 21:17 ` Marius Bakke [this message]
2016-09-26 9:36 ` [PATCH 3/4] gnu: Add python-sphinx-argparse Hartmut Goebel
2016-09-25 21:17 ` [PATCH 4/4] gnu: Add python2-pbcommand Marius Bakke
2016-09-26 9:38 ` Hartmut Goebel
2016-09-26 9:31 ` [PATCH 1/4] gnu: Add python-avro Hartmut Goebel
2016-09-26 19:56 ` Marius Bakke
2016-10-04 9:35 ` Ludovic Courtès
2016-10-04 9:32 ` Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160925211728.7636-3-mbakke@fastmail.com \
--to=mbakke@fastmail.com \
--cc=guix-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).