summary refs log tree commit diff
diff options
context:
space:
mode:
authorLeo Famulari <leo@famulari.name>2015-11-08 22:47:48 -0500
committerDavid Thompson <dthompson2@worcester.edu>2015-12-05 09:44:37 -0500
commit79e8a2916dac8bea5fcaabf257ed86d2bfd5daff (patch)
tree7b5f7f648ad8a17b13d1a130911be9d9b7c65b7c
parentb5f218be26d8a4f683bcece76ac10314cb58b326 (diff)
downloadguix-79e8a2916dac8bea5fcaabf257ed86d2bfd5daff.tar.gz
gnu: Add python-configargparse.
* gnu/packages/python.scm (python-configargparse,
  python2-configargparse): New variables.
-rw-r--r--gnu/packages/python.scm26
1 files changed, 26 insertions, 0 deletions
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 05de9939fb..ff37b865a9 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -6463,3 +6463,29 @@ config files.")
 
 (define-public python2-configobj
   (package-with-python2 python-configobj))
+
+(define-public python-configargparse
+  (package
+    (name "python-configargparse")
+    (version "0.10.0")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append
+                    "https://pypi.python.org/packages/source/C/ConfigArgParse/"
+                    "ConfigArgParse-" version ".tar.gz"))
+              (sha256
+               (base32
+                "19wh919gbdbzxzpagg52q3lm62yicm95ddlcx77dyjc1slyshl1v"))))
+    (build-system python-build-system)
+    (arguments
+     ;; FIXME: Bug in test suite filed upstream:
+     ;; https://github.com/bw2/ConfigArgParse/issues/32
+     '(#:tests? #f))
+    (synopsis "Replacement for argparse")
+    (description "A drop-in replacement for argparse that allows options to also
+be set via config files and/or environment variables.")
+    (home-page "https://github.com/bw2/ConfigArgParse")
+    (license license:expat)))
+
+(define-public python2-configargparse
+  (package-with-python2 python-configargparse))