[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/01: gnu: Add python-reportlab.
From: |
Leo Famulari |
Subject: |
01/01: gnu: Add python-reportlab. |
Date: |
Tue, 16 Aug 2016 18:34:33 +0000 (UTC) |
lfam pushed a commit to branch master
in repository guix.
commit 3fa2dc27407619326a355bc22637f8f350f1cc89
Author: Marius Bakke <address@hidden>
Date: Sun Aug 14 16:47:33 2016 +0100
gnu: Add python-reportlab.
* gnu/packages/pdf.scm (python-reportlab, python2-reportlab): New
variables.
Signed-off-by: Leo Famulari <address@hidden>
---
gnu/packages/pdf.scm | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
diff --git a/gnu/packages/pdf.scm b/gnu/packages/pdf.scm
index 439adb9..59e5523 100644
--- a/gnu/packages/pdf.scm
+++ b/gnu/packages/pdf.scm
@@ -5,6 +5,7 @@
;;; Copyright © 2015 Paul van der Walt <address@hidden>
;;; Copyright © 2016 Roel Janssen <address@hidden>
;;; Coypright © 2016 ng0 <address@hidden>
+;;; Coypright © 2016 Marius Bakke <address@hidden>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -49,6 +50,7 @@
#:use-module (gnu packages curl)
#:use-module (gnu packages pcre)
#:use-module (gnu packages perl)
+ #:use-module (gnu packages python)
#:use-module (gnu packages tls)
#:use-module (srfi srfi-1))
@@ -582,3 +584,35 @@ program capable of converting PDF into other formats.")
"Xournal is an application for notetaking, sketching, keeping a journal
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=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 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)))))