From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: [PATCH 01/16] gnu: Add python-argparse. Date: Tue, 17 Jan 2017 15:11:26 +0100 Message-ID: <20170117141141.11694-2-rekado@elephly.net> References: <20170117141141.11694-1-rekado@elephly.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39440) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cTUUM-0006vu-L7 for guix-devel@gnu.org; Tue, 17 Jan 2017 09:12:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cTUUL-00063j-CL for guix-devel@gnu.org; Tue, 17 Jan 2017 09:11:54 -0500 Received: from sender163-mail.zoho.com ([74.201.84.163]:21142) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cTUUL-00063d-3t for guix-devel@gnu.org; Tue, 17 Jan 2017 09:11:53 -0500 In-Reply-To: <20170117141141.11694-1-rekado@elephly.net> 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" To: guix-devel@gnu.org * 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 ;;; Copyright © 2015 Omar Radwan ;;; Copyright © 2015 Pierre-Antoine Rault -;;; Copyright © 2015, 2016 Ricardo Wurmus +;;; Copyright © 2015, 2016, 2017 Ricardo Wurmus ;;; Copyright © 2015, 2016 Christopher Allan Webber ;;; Copyright © 2015 Eric Dvorsak ;;; Copyright © 2015, 2016 David Thompson @@ -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