From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marius Bakke Subject: [PATCH] gnu: Add python-odfpy. Date: Wed, 17 Aug 2016 17:53:31 +0100 Message-ID: <878tvvz69g.fsf@ike.i-did-not-set--mail-host-address--so-tickle-me> Mime-Version: 1.0 Content-Type: text/x-patch; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39962) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ba468-0004VI-0v for guix-devel@gnu.org; Wed, 17 Aug 2016 12:53:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ba464-0001Zz-Rr for guix-devel@gnu.org; Wed, 17 Aug 2016 12:53:48 -0400 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:51294) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ba462-0001UO-FB for guix-devel@gnu.org; Wed, 17 Aug 2016 12:53:44 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id ED5C320577 for ; Wed, 17 Aug 2016 12:53:32 -0400 (EDT) Received: from localhost (unknown [46.16.214.129]) by mail.messagingengine.com (Postfix) with ESMTPA id 8E4B5CCDCC for ; Wed, 17 Aug 2016 12:53:32 -0400 (EDT) Content-Disposition: inline; filename=0001-gnu-Add-python-odfpy.patch 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: guix-devel@gnu.org >From aa54aaee18b096780220f85a02b7e036458858a2 Mon Sep 17 00:00:00 2001 From: Marius Bakke Date: Wed, 17 Aug 2016 17:45:24 +0100 Subject: [PATCH] gnu: Add python-odfpy. * gnu/packages/python.scm (python-odfpy, python2-odfpy): New variables. --- gnu/packages/python.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index d7886d9..ca3df19 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -25,6 +25,7 @@ ;;; Copyright =C2=A9 2016 Troy Sankey ;;; Copyright =C2=A9 2016 ng0 ;;; Copyright =C2=A9 2016 Dylan Jeffers +;;; Copyright =C2=A9 2016 Marius Bakke ;;; ;;; This file is part of GNU Guix. ;;; @@ -9983,3 +9984,34 @@ hardware-accelerated multitouch applications.") =20 (define-public python2-kivy-next (package-with-python2 python-kivy-next)) + +(define-public python-odfpy + (package + (name "python-odfpy") + (version "1.3.3") + (source + (origin + (method url-fetch) + (uri (pypi-uri "odfpy" version)) + (sha256 + (base32 + "1a6ms0w9zfhhkqhvrnynwwbxrivw6hgjc0s5k7j06npc7rq0blxw")))) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda _ (zero? (system* "make" "-C" "tests"))))))) + (native-inputs + ;; The test runner wants to check both python versions at once. + ;; To avoid patching it, we add them here. + `(("python-2" ,python-2) + ("python-3" ,python-3))) + (build-system python-build-system) + (home-page "https://github.com/eea/odfpy") + (synopsis "API for OpenDocument in Python") + (description "Collection of utility programs written in Python to +manipulate OpenDocument 1.2 files.") + (license (list asl2.0 gpl2+)))) + +(define-public python2-odfpy + (package-with-python2 python-odfpy)) --=20 2.9.2