From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo Famulari Subject: [PATCH 11/13] gnu: Add python2-unicodecsv. Date: Thu, 3 Mar 2016 20:26:37 -0500 Message-ID: <42c87e48c5710b6f51144e726bbd6dc7bb0fc7ed.1457054741.git.leo@famulari.name> References: Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38199) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1abeW0-0008PZ-1a for guix-devel@gnu.org; Thu, 03 Mar 2016 20:26:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1abeVx-0002Xz-NW for guix-devel@gnu.org; Thu, 03 Mar 2016 20:26:47 -0500 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:51675) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1abeVx-0002Xn-JV for guix-devel@gnu.org; Thu, 03 Mar 2016 20:26:45 -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 342D9C0001F for ; Thu, 3 Mar 2016 20:26:44 -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 (python2-unicodecsv): New variable. --- gnu/packages/python.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index ac82a09..ce7d777 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -8338,3 +8338,30 @@ encoding algorithms to do fuzzy string matching.") (native-inputs `(("python2-setuptools" ,python2-setuptools) ("python2-unicodecsv" ,python2-unicodecsv) ,@(package-native-inputs jellyfish)))))) + +(define-public python2-unicodecsv + (package + (name "python2-unicodecsv") + (version "0.14.1") + (source (origin + (method url-fetch) + ;; The test suite is not included in the PyPi release. + ;; https://github.com/jdunck/python-unicodecsv/issues/19 + (uri (string-append "https://github.com/jdunck/python-unicodecsv/" + "archive/" version ".tar.gz")) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "087nqanfcyp6mlfbbr5lva5f3w6iz1bybls9xlrb8icmc474wh4w")))) + (build-system python-build-system) + (arguments + `(;; It supports Python 3, but Python 3 can already do Unicode CSV. + #:python ,python-2)) + (native-inputs + `(("python2-setuptools" ,python2-setuptools) + ("python2-unittest2" ,python2-unittest2))) + (home-page "https://github.com/jdunck/python-unicodecsv") + (synopsis "Unicode CSV module for Python 2") + (description "Unicodecsv is a drop-in replacement for Python 2.7's CSV +module, adding support for Unicode strings.") + (license bsd-2))) -- 2.6.3