From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marius Bakke Subject: [PATCH] gnu: Add python-reportlab. Date: Mon, 15 Aug 2016 13:32:14 +0100 Message-ID: <87inv2gqlt.fsf@ike.i-did-not-set--mail-host-address--so-tickle-me> Mime-Version: 1.0 Content-Type: text/x-patch Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37483) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bZH4B-0005CV-Tx for guix-devel@gnu.org; Mon, 15 Aug 2016 08:32:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bZH46-00010Q-Tl for guix-devel@gnu.org; Mon, 15 Aug 2016 08:32:30 -0400 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:57658) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bZH44-0000zo-K6 for guix-devel@gnu.org; Mon, 15 Aug 2016 08:32:26 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id C31A62059D for ; Mon, 15 Aug 2016 08:32:15 -0400 (EDT) Received: from localhost (unknown [46.16.214.129]) by mail.messagingengine.com (Postfix) with ESMTPA id 63765CCE76 for ; Mon, 15 Aug 2016 08:32:15 -0400 (EDT) Content-Disposition: inline; filename=0001-gnu-Add-python-reportlab.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 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(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 5cc54d0..190e797 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -9886,3 +9886,35 @@ relays publish about themselves.") (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=20765 . + `(#:configure-flags '("--single-version-externally-managed" "--root=/"))) + (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 creation +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))))) -- 2.9.2