From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kyle Meyer Subject: [PATCH v2] gnu: Add python-docopt. Date: Sat, 5 Dec 2015 02:11:31 -0500 Message-ID: <1449299491-27765-1-git-send-email-kyle@kyleam.com> References: <87fuzjf7ft.fsf@kyleam.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43603) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a570a-00073S-Qj for guix-devel@gnu.org; Sat, 05 Dec 2015 02:11:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a570X-0002ac-Iy for guix-devel@gnu.org; Sat, 05 Dec 2015 02:11:52 -0500 Received: from pb-smtp0.int.icgroup.com ([208.72.237.35]:52435 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a570X-0002aS-D1 for guix-devel@gnu.org; Sat, 05 Dec 2015 02:11:49 -0500 In-Reply-To: <87fuzjf7ft.fsf@kyleam.com> 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 Cc: Kyle Meyer * gnu/packages/python.scm (python-docopt, python2-docopt): New variables. --- gnu/packages/python.scm | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 3385393..273486b 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -14,6 +14,7 @@ ;;; Copyright =C2=A9 2015 Ben Woodcroft ;;; Copyright =C2=A9 2015 Erik Edrosa ;;; Copyright =C2=A9 2015 Efraim Flashner +;;; Copyright =C2=A9 2015 Kyle Meyer ;;; ;;; This file is part of GNU Guix. ;;; @@ -6006,3 +6007,38 @@ automatically detect a wide range of file encoding= s.") =20 (define-public python2-chardet (package-with-python2 python-chardet)) + +(define-public python-docopt + (package + (name "python-docopt") + (version "0.6.2") + (source + (origin + (method url-fetch) + ;; The release on PyPI does not include tests. + (uri (string-append + "https://github.com/docopt/docopt/archive/" + version ".tar.gz")) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "16bf890xbdz3m30rsv2qacklh2rdn1zrfspfnwzx9g7vwz8yw4r1")))) + (build-system python-build-system) + (native-inputs + `(("python-pytest" ,python-pytest) + ("python-setuptools" ,python-setuptools))) + (arguments + `(#:phases (alist-replace + 'check + (lambda _ (zero? (system* "py.test"))) + %standard-phases))) + (home-page "http://docopt.org") + (synopsis "Command-line interface description language for Python") + (description "This library allows the user to define a command-line +interface from a program's help message rather than specifying it +programatically with command-line parsers like @code{getopt} and +@code{argparse}.") + (license license:expat))) + +(define-public python2-docopt + (package-with-python2 python-docopt)) --=20 2.6.3