guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 01/16] gnu: Add python-argparse.


From: Ricardo Wurmus
Subject: [PATCH 01/16] gnu: Add python-argparse.
Date: Tue, 17 Jan 2017 15:11:26 +0100

* 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 <address@hidden>
 ;;; Copyright © 2015 Omar Radwan <address@hidden>
 ;;; Copyright © 2015 Pierre-Antoine Rault <address@hidden>
-;;; Copyright © 2015, 2016 Ricardo Wurmus <address@hidden>
+;;; Copyright © 2015, 2016, 2017 Ricardo Wurmus <address@hidden>
 ;;; Copyright © 2015, 2016 Christopher Allan Webber <address@hidden>
 ;;; Copyright © 2015 Eric Dvorsak <address@hidden>
 ;;; Copyright © 2015, 2016 David Thompson <address@hidden>
@@ -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
address@hidden  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

[Prev in Thread] Current Thread [Next in Thread]