* gnu/packages/python.scm (python-argparse, python2-argparse): New
variables.
---
 gnu/packages/python.scm | 31 ++++++++++++++++++++++++++++++-
 1 file changed, 30 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index a9792afe2..cf7143be1 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -7,7 +7,7 @@
 ;;; Copyright © 2014, 2015 Federico Beffa <be...@fbengineering.ch>
 ;;; Copyright © 2015 Omar Radwan <toxemicsqui...@gmail.com>
 ;;; Copyright © 2015 Pierre-Antoine Rault <p...@rigelk.eu>
-;;; Copyright © 2015, 2016 Ricardo Wurmus <rek...@elephly.net>
+;;; Copyright © 2015, 2016, 2017 Ricardo Wurmus <rek...@elephly.net>
 ;;; Copyright © 2015, 2016 Christopher Allan Webber <cweb...@dustycloud.org>
 ;;; Copyright © 2015 Eric Dvorsak <e...@dvorsak.fr>
 ;;; Copyright © 2015, 2016 David Thompson <da...@gnu.org>
@@ -7863,6 +7863,35 @@ be set via config files and/or environment variables.")
 (define-public python2-configargparse
   (package-with-python2 python-configargparse))
 
+(define-public python-argparse
+  (package
+    (name "python-argparse")
+    (version "1.4.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "argparse" version))
+       (sha256
+        (base32
+         "1r6nznp64j68ih1k537wms7h57nvppq0szmwsaf99n71bfjqkc32"))))
+    (properties `((python2-variant . ,(delay python2-argparse))))
+    (build-system python-build-system)
+    (home-page "https://pypi.python.org/pypi/argparse/";)
+    (synopsis "Command-line parsing library")
+    (description "The @code{argparse} module makes it easy to write user
+friendly command line interfaces.  The program defines what arguments it
+requires, and @code{argparse} will figure out how to parse those out of
+@code{sys.argv}.  The @code{argparse} module also automatically generates help
+and usage messages and issues errors when users give the program invalid
+arguments.")
+    (license (package-license python))))
+
+(define-public python2-argparse
+  (package (inherit (package-with-python2
+              (strip-python2-variant python-argparse)))
+    (native-inputs
+     `(("python2-setuptools" ,python2-setuptools)))))
+
 (define-public python-ndg-httpsclient
   (package
     (name "python-ndg-httpsclient")
-- 
2.11.0



Reply via email to