From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marius Bakke Subject: Re: [PATCH] gnu: Add python-reportlab. Date: Mon, 15 Aug 2016 15:01:00 +0100 Message-ID: <87bn0ugmhv.fsf@ike.i-did-not-set--mail-host-address--so-tickle-me> References: <87inv2gqlt.fsf@ike.i-did-not-set--mail-host-address--so-tickle-me> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58967) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bZIS3-00011a-1d for guix-devel@gnu.org; Mon, 15 Aug 2016 10:01:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bZIRy-0004JX-RA for guix-devel@gnu.org; Mon, 15 Aug 2016 10:01:14 -0400 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:37229) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bZIRw-0004HU-BQ for guix-devel@gnu.org; Mon, 15 Aug 2016 10:01:10 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id EB191205DD for ; Mon, 15 Aug 2016 10:01:01 -0400 (EDT) Received: from localhost (unknown [46.16.214.129]) by mail.messagingengine.com (Postfix) with ESMTPA id 8DE45CCE73 for ; Mon, 15 Aug 2016 10:01:01 -0400 (EDT) In-Reply-To: <87inv2gqlt.fsf@ike.i-did-not-set--mail-host-address--so-tickle-me> 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 --=-=-= Content-Type: text/plain > From c95b25a3ad4902ccdef79c7429485a7cacc72e1c Mon Sep 17 00:00:00 2001 > From: Marius Bakke > Date: Sun, 14 Aug 2016 16:47:33 +0100 > Subject: [PATCH] gnu: Add python-reportlab. > > * gnu/packages/python.scm (python-reportlab, python2-reportlab): New > variables. > --- > gnu/packages/python.scm | 32 ++++++++++++++++++++++++++++++++ > 1 file changed, 32 insertions(+) Oops, forgot copyright line. New patch below. Perhaps pdf.scm is better? --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: inline; filename=0001-gnu-Add-python-reportlab.patch Content-Transfer-Encoding: quoted-printable >From a24bafef4b21dcdaff8b6e428a7a399eb6f5e8fd Mon Sep 17 00:00:00 2001 From: Marius Bakke Date: Sun, 14 Aug 2016 16:47:33 +0100 Subject: [PATCH] gnu: Add python-reportlab. * gnu/packages/python.scm (python-reportlab, python2-reportlab): New variables. --- gnu/packages/python.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 5cc54d0..29ea9d5 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -24,6 +24,7 @@ ;;; Copyright =C2=A9 2016 Sou Bunnbu ;;; Copyright =C2=A9 2016 Troy Sankey ;;; Copyright =C2=A9 2016 ng0 +;;; Copyright =C2=A9 2016 Marius Bakke ;;; ;;; This file is part of GNU Guix. ;;; @@ -9886,3 +9887,35 @@ relays publish about themselves.") =20 (define-public python2-stem (package-with-python2 python-stem)) + +(define-public python-reportlab + (package + (name "python-reportlab") + (version "3.3.0") + (source (origin + (method url-fetch) + (uri (pypi-uri "reportlab" version)) + (sha256 + (base32 + "0rz2pg04wnzjjm2f5a8ik9v8s54mv4xrjhv5liqjijqv6awh12gl")))) + (build-system python-build-system) + (arguments + ;; Prevent creation of the egg. Without this flag, various artifacts + ;; from the build inputs end up in the final python3 output. It also + ;; works around https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D20765= . + `(#:configure-flags '("--single-version-externally-managed" "--root= =3D/"))) + (propagated-inputs + `(("python-pillow" ,python-pillow))) + (home-page "http://www.reportlab.com") + (synopsis "Python library for generating PDFs and graphics") + (description "This is the ReportLab PDF Toolkit. It allows rapid crea= tion +of rich PDF documents, and also creation of charts in a variety of bitmap = and +vector formats.") + (license bsd-3) + (properties `((python2-variant . ,(delay python2-reportlab)))))) + +(define-public python2-reportlab + (package + (inherit (package-with-python2 + (strip-python2-variant python-reportlab))) + (native-inputs `(("python2-pip" ,python2-pip))))) --=20 2.9.2 --=-=-=--