From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?q?=E5=AE=8B=E6=96=87=E6=AD=A6?= Subject: [PATCH 2/4] gnu: Add python-tabulate and python2-tabulate. Date: Tue, 7 Jun 2016 21:57:31 +0800 Message-ID: <1465307853-12065-1-git-send-email-iyzsong@gmail.com> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41992) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bAHVr-0005ox-Mj for guix-devel@gnu.org; Tue, 07 Jun 2016 09:57:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bAHVp-0000SJ-91 for guix-devel@gnu.org; Tue, 07 Jun 2016 09:57:46 -0400 Received: from mail.openmailbox.org ([62.4.1.34]:56005) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bAHVp-0000S8-2p for guix-devel@gnu.org; Tue, 07 Jun 2016 09:57:45 -0400 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 Cc: =?UTF-8?q?=E5=AE=8B=E6=96=87=E6=AD=A6?= * gnu/packages/python.scm (python-tabulate, python2-tabulate): New variables. --- gnu/packages/python.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index dfbf2cc..1a83933 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -9009,3 +9009,35 @@ focus on event-based network programming and multiprotocol integration.") (define-public python2-twisted (package-with-python2 python-twisted)) + +(define-public python-tabulate + (package + (name "python-tabulate") + (version "0.7.5") + (source (origin + (method url-fetch) + (uri (pypi-uri "tabulate" version)) + (sha256 + (base32 + "03l1r7ddd1a0j2snv1yd0hlnghjad3fg1an1jr8936ksv75slwch")) + ;; Fix tests + (modules '((guix build utils))) + (snippet '(substitute* '("test/test_cli.py" + "test/test_input.py" + "test/test_output.py" + "test/test_regression.py") + (("from common") "from nose.tools"))))) + (build-system python-build-system) + (native-inputs + `(("python-setuptools" ,python-setuptools) + ;; For testing + ("python-nose" ,python-nose))) + (home-page "https://bitbucket.org/astanin/python-tabulate") + (synopsis "Pretty-print tabular data") + (description + "Tabulate is a library and command-line utility to pretty-print tabular +data in Python.") + (license license:expat))) + +(define-public python2-tabulate + (package-with-python2 python-tabulate)) -- 2.6.3