From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Nieuwenhuizen Subject: Re: [PATCH] gnu: add xlsx2csv. Date: Sat, 13 Aug 2016 11:12:16 +0200 Message-ID: <87fuq9xcb3.fsf@gnu.org> References: <878tw3zia9.fsf@gnu.org> <5f752f76-a58a-a1e0-403d-ed5dd2715e13@uq.edu.au> <871t1vzesb.fsf@gnu.org> <662c11f7-601d-6714-173f-5abf53a96e4f@uq.edu.au> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53293) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bYUzj-0005FU-ER for guix-devel@gnu.org; Sat, 13 Aug 2016 05:12:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bYUzf-0006FD-7k for guix-devel@gnu.org; Sat, 13 Aug 2016 05:12:42 -0400 In-Reply-To: (catonano@gmail.com's message of "Fri, 12 Aug 2016 15:22:51 +0200") 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: Catonano Cc: guix-devel --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Catonano writes: > I would say > >> "Xlsx2csv is a program to convert xlsx >> format files into plaintext @dfn{comma separated values} (CSV) >> files.=C2=A0 It was designed to be fast and to handle large files." > > In this way they could search on tne internet the meaning of xlsx and csv= and know > exactly what ths package is about. Find new patch attached, hope this is OK. If not, please modify to your liking. I took some inspiration from our libreoffice.scm package description. Greeting, Jan --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: inline; filename=0001-gnu-Add-xlsx2csv.patch Content-Transfer-Encoding: quoted-printable >From f5ae32ba44a91fe99889ea3770ca7733dc051edd Mon Sep 17 00:00:00 2001 From: Jan Nieuwenhuizen Date: Wed, 13 Jul 2016 14:46:33 +0200 Subject: [PATCH] gnu: Add xlsx2csv. * gnu/packages/xml.scm (xlsx2csv): New variable. --- gnu/packages/xml.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/gnu/packages/xml.scm b/gnu/packages/xml.scm index e97a0b0..7f673db 100644 --- a/gnu/packages/xml.scm +++ b/gnu/packages/xml.scm @@ -9,6 +9,7 @@ ;;; Copyright =C2=A9 2015 Raimon Grau ;;; Copyright =C2=A9 2016 Mathieu Lirzin ;;; Copyright =C2=A9 2016 Leo Famulari +;;; Copyright =C2=A9 2016 Jan Nieuwenhuizen ;;; ;;; This file is part of GNU Guix. ;;; @@ -741,3 +742,35 @@ used to transform, query, validate, and edit XML docum= ents. XPath is used to match and extract data, and elements can be added, deleted or modified usi= ng XSLT and EXSLT.") (license license:x11))) + +(define-public xlsx2csv + (package + (name "xlsx2csv") + (version "0.7.2") + (source (origin + (method url-fetch) + (uri (string-append + "https://github.com/dilshod/" + name "/archive/release/" version ".tar.gz")) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1gpn6kaa7l1ai8c9zx2j3acf04bvxq79pni8jjfjrk01smjbyyql")))) + (build-system python-build-system) + (arguments + `(#:python ,python-2 + #:phases + (modify-phases %standard-phases + (replace 'check + (lambda _ + (substitute* "test/run" + ;; Run tests with `python' only + (("^(PYTHON_VERSIONS =3D ).*" all m) (string-append m "['']= "))) + (zero? (system* "test/run"))))))) + (home-page "https://github.com/dilshod/xlsx2csv") + (synopsis "xlsx to csv converter") + (description + "Xlsx2csv is a program to convert Microsoft Excel 2007 XML (XLSX) for= mat +spreadsheets into plaintext @dfn{comma separated values} (CSV) files. It = is +designed to be fast and to handle large input files.") + (license license:gpl2+))) --=20 2.9.2 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable --=20 Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | Avatar=C2=AE http://AvatarAcademy.nl= =20=20 --=-=-=--