From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marius Bakke Subject: Re: [PATCH] gnu: Add python-reportlab. Date: Tue, 16 Aug 2016 11:57:25 +0100 Message-ID: <8737m50yne.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> <87bn0ugmhv.fsf@ike.i-did-not-set--mail-host-address--so-tickle-me> <20160816003631.GB16946@jasmine> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50072) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bZc41-0001uB-GW for guix-devel@gnu.org; Tue, 16 Aug 2016 06:57:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bZc3w-0006QA-Fu for guix-devel@gnu.org; Tue, 16 Aug 2016 06:57:44 -0400 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:36096) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bZc3u-0006PT-67 for guix-devel@gnu.org; Tue, 16 Aug 2016 06:57:40 -0400 In-Reply-To: <20160816003631.GB16946@jasmine> 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: Leo Famulari Cc: guix-devel@gnu.org --=-=-= Content-Type: text/plain Leo Famulari writes: > On Mon, Aug 15, 2016 at 03:01:00PM +0100, Marius Bakke wrote: >> >> > 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? > > Looks good. I think pdf.scm is better. Can you send another patch? New patch attached. > >> + ;; 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=20765 . >> + `(#:configure-flags '("--single-version-externally-managed" "--root=/"))) > > Feel free to add something to that discussion. We are starting a new > "core-updates" cycle, so it's a good time to begin implementing changes > to core components such as build systems. There are quite a few packages suffering from this, at least python-{pillow,dendropy}. What's strange is that site.py and all propagated /bin files end up in the python3 output, causing a mountain of collisions. I'll have a shot at figuring out what's going on. Thanks, Marius --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: inline; filename=0001-gnu-Add-python-reportlab.patch Content-Transfer-Encoding: quoted-printable >From 0bcfdc9ac99911972e2d3a7dae5bd8f07a7beb03 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/pdf.scm (python-reportlab, python2-reportlab): New variables. --- gnu/packages/pdf.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/gnu/packages/pdf.scm b/gnu/packages/pdf.scm index 439adb9..d612ede 100644 --- a/gnu/packages/pdf.scm +++ b/gnu/packages/pdf.scm @@ -5,6 +5,7 @@ ;;; Copyright =C2=A9 2015 Paul van der Walt ;;; Copyright =C2=A9 2016 Roel Janssen ;;; Coypright =C2=A9 2016 ng0 +;;; Coypright =C2=A9 2016 Marius Bakke ;;; ;;; This file is part of GNU Guix. ;;; @@ -582,3 +583,35 @@ program capable of converting PDF into other formats.") "Xournal is an application for notetaking, sketching, keeping a journ= al using a stylus.") (license license:gpl2+))) + +(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 --=-=-=--