>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 © 2015 Christopher Allan Webber ;;; Copyright © 2015 Eric Dvorsak ;;; Copyright © 2015 Leo Famulari +;;; Copyright © 2015 Ben Woodcroft ;;; ;;; This file is part of GNU Guix. ;;; @@ -4880,3 +4881,39 @@ object to help create WSGI responses.") (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 support for +Excel dates and is Unicode-aware.") + (license bsd-3))) + +(define-public python2-xlrd + (package-with-python2 python-xlrd)) -- 2.4.3