From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo Famulari Subject: [PATCH 18/23] WIP: Add python-configargparse. Date: Tue, 24 Nov 2015 16:02:18 -0500 Message-ID: References: Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43579) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a1KhS-0002F3-Fn for guix-devel@gnu.org; Tue, 24 Nov 2015 16:00:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a1KhR-0003dD-8V for guix-devel@gnu.org; Tue, 24 Nov 2015 16:00:30 -0500 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:45916) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a1KhR-0003d6-5b for guix-devel@gnu.org; Tue, 24 Nov 2015 16:00:29 -0500 Received: from jasmine.lan (c-69-249-5-231.hsd1.pa.comcast.net [69.249.5.231]) by mail.messagingengine.com (Postfix) with ESMTPA id A468D680110 for ; Tue, 24 Nov 2015 16:00:24 -0500 (EST) In-Reply-To: In-Reply-To: References: List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix-devel@gnu.org * gnu/packages/python.scm (python-configargparse, python2-configargparse): New variables. --- gnu/packages/python.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 04d95ee..e7d5a89 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -6357,3 +6357,30 @@ 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 + `(#:tests? #f)) ;; FIXME: bug filed upstream + ;; https://github.com/bw2/ConfigArgParse/issues/32 + (native-inputs + `(("python-setuptools" ,python-setuptools))) + (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)) -- 2.6.2