From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Woodcroft Subject: [PATCH] gnu: Add python-xlrd. Date: Sat, 19 Sep 2015 23:38:41 +1000 Message-ID: <55FD6561.8050608@uq.edu.au> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------010503090508090905020907" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33405) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZdILs-00043J-Ra for guix-devel@gnu.org; Sat, 19 Sep 2015 09:38:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZdILp-0003w0-K7 for guix-devel@gnu.org; Sat, 19 Sep 2015 09:38:52 -0400 Received: from mailhub1.soe.uq.edu.au ([130.102.132.208]:37185 helo=newmailhub.uq.edu.au) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZdILp-0003vf-0u for guix-devel@gnu.org; Sat, 19 Sep 2015 09:38:49 -0400 Received: from smtp1.soe.uq.edu.au (smtp1.soe.uq.edu.au [10.138.113.40]) by newmailhub.uq.edu.au (8.14.5/8.14.5) with ESMTP id t8JDchqV003052 for ; Sat, 19 Sep 2015 23:38:44 +1000 Received: from [192.168.1.101] ([103.25.181.216]) (authenticated bits=0) by smtp1.soe.uq.edu.au (8.14.5/8.14.5) with ESMTP id t8JDcgsR064735 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT) for ; Sat, 19 Sep 2015 23:38:43 +1000 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" This is a multi-part message in MIME format. --------------010503090508090905020907 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Thanks in advance for review. --------------010503090508090905020907 Content-Type: text/x-patch; name="0001-gnu-Add-python-xlrd.patch" Content-Disposition: attachment; filename="0001-gnu-Add-python-xlrd.patch" Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by newmailhub.uq.edu.au id t8JDchqV003052 >From cb470509de810ea93ac4e576bb0347225b68ad98 Mon Sep 17 00:00:00 2001 From: Ben Woodcroft Date: Sat, 19 Sep 2015 23:35:18 +1000 Subject: [PATCH] gnu: Add python-xlrd. * gnu/packages/python.scm (python-xlrd, python2-xlrd): New variables. --- gnu/packages/python.scm | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 408064d..b9ecf3e 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -11,6 +11,7 @@ ;;; Copyright =C2=A9 2015 Christopher Allan Webber ;;; Copyright =C2=A9 2015 Eric Dvorsak ;;; Copyright =C2=A9 2015 Leo Famulari +;;; Copyright =C2=A9 2015 Ben Woodcroft ;;; ;;; This file is part of GNU Guix. ;;; @@ -4880,3 +4881,39 @@ object to help create WSGI responses.") =20 (define-public python2-webob (package-with-python2 python-webob)) + +(define-public python-xlrd + (package + (name "python-xlrd") + (version "0.9.4") + (source + (origin + (method url-fetch) + (uri (string-append + "https://pypi.python.org/packages/source/x/xlrd/xlrd-" + version + ".tar.gz")) + (sha256 + (base32 + "0wpa55nvidmm5m2qr622dsh3cj46akdk0h3zjgzschcmydck73cf")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + ;; current test in setup.py does not work as of 0.9.4, + ;; so use nose to run tests instead for now. + (replace 'check (lambda _ (zero? (system* "nosetests"))))))) + (native-inputs + `(("python-setuptools" ,python2-setuptools) + ("python-nose" ,python2-nose))) + (home-page "http://www.python-excel.org/") + (synopsis + "Library for extracting data from Microsoft Excel (tm) files") + (description + "Extract data from Excel spreadsheets (.xls and .xlsx, versions 2.0 +onwards) on any platform. It is pure Python (2.6, 2.7, 3.2+), has suppo= rt for +Excel dates and is Unicode-aware.") + (license bsd-3))) + +(define-public python2-xlrd + (package-with-python2 python-xlrd)) --=20 2.4.3 --------------010503090508090905020907--