guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/01: gnu: Add python-xlrd.


From: Mathieu Lirzin
Subject: 01/01: gnu: Add python-xlrd.
Date: Thu, 01 Oct 2015 21:46:22 +0000

mthl pushed a commit to branch master
in repository guix.

commit 02a8a1876a9facd52fa71e76a5fdab8c97063eca
Author: Ben Woodcroft <address@hidden>
Date:   Sat Sep 19 23:35:18 2015 +1000

    gnu: Add python-xlrd.
    
    * gnu/packages/python.scm (python-xlrd, python2-xlrd): New variables.
    
    Signed-off-by: Mathieu Lirzin <address@hidden>
---
 gnu/packages/python.scm |   32 ++++++++++++++++++++++++++++++++
 1 files changed, 32 insertions(+), 0 deletions(-)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 708ba29..2c9772e 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -11,6 +11,7 @@
 ;;; Copyright © 2015 Christopher Allan Webber <address@hidden>
 ;;; Copyright © 2015 Eric Dvorsak <address@hidden>
 ;;; Copyright © 2015 Leo Famulari <address@hidden>
+;;; Copyright © 2015 Ben Woodcroft <address@hidden>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -4918,6 +4919,37 @@ 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-nose"       ,python-nose)
+                     ("python-setuptools" ,python-setuptools)))
+    (home-page "http://www.python-excel.org/";)
+    (synopsis "Library for extracting data from Excel files")
+    (description "This packages provides a library to extract data from
+spreadsheets using Microsoft Excel® proprietary file formats @samp{.xls} and
address@hidden (versions 2.0 onwards).  It has support for Excel dates and is
+Unicode-aware.  It is not intended as an end-user tool.")
+    (license bsd-3)))
+
+(define-public python2-xlrd
+  (package-with-python2 python-xlrd))
+
 (define-public python-prettytable
   (package
     (name "python-prettytable")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]