From: Ricardo Wurmus <rekado@elephly.net>
To: 26425@debbugs.gnu.org
Cc: Ricardo Wurmus <rekado@elephly.net>
Subject: bug#26425: [PATCH 1/2] gnu: Add python-poppler-qt5.
Date: Sun, 9 Apr 2017 22:47:52 +0200 [thread overview]
Message-ID: <20170409204753.24456-1-rekado@elephly.net> (raw)
* gnu/packages/pdf.scm (python-poppler-qt5): New variable.
---
gnu/packages/pdf.scm | 47 +++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 47 insertions(+)
diff --git a/gnu/packages/pdf.scm b/gnu/packages/pdf.scm
index 7f3dccc8b..0882d3b94 100644
--- a/gnu/packages/pdf.scm
+++ b/gnu/packages/pdf.scm
@@ -184,6 +184,53 @@
Poppler PDF rendering library.")
(license license:lgpl2.1+)))
+(define-public python-poppler-qt5
+ (package
+ (name "python-poppler-qt5")
+ (version "0.24.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "python-poppler-qt5" version))
+ (sha256
+ (base32
+ "0l69llw1fzwz8y90q0qp9q5pifbrqjjbwii7di54dwghw5fc6w1r"))))
+ (build-system python-build-system)
+ (arguments
+ `(;; There are no tests. The check phase just causes a rebuild.
+ #:tests? #f
+ #:phases
+ (modify-phases %standard-phases
+ (replace 'build
+ (lambda* (#:key inputs #:allow-other-keys)
+ (substitute* "setup.py"
+ ;; This check always fails, so disable it.
+ (("if not check_qtxml\\(\\)")
+ "if True")
+ ;; Enable C++11, which is needed because of Qt5.
+ (("\\*\\*ext_args" line)
+ (string-append "extra_compile_args=['-std=gnu++11'], " line)))
+ ;; We need to pass an extra flag here. This cannot be in
+ ;; configure-flags because it should not be passed for the
+ ;; installation phase.
+ ((@@ (guix build python-build-system) call-setuppy)
+ "build_ext" (list (string-append "--pyqt-sip-dir="
+ (assoc-ref inputs "python-pyqt")
+ "/share/sip")) #t))))))
+ (native-inputs
+ `(("pkg-config" ,pkg-config)))
+ (inputs
+ `(("python-sip" ,python-sip)
+ ("python-pyqt" ,python-pyqt)
+ ("poppler-qt5" ,poppler-qt5)
+ ("qtbase" ,qtbase)))
+ (home-page "https://pypi.python.org/pypi/python-poppler-qt5")
+ (synopsis "Python bindings for Poppler-Qt5")
+ (description
+ "This package provides Python bindings for the Qt5 interface of the
+Poppler PDF rendering library.")
+ (license license:lgpl2.1+)))
+
(define-public libharu
(package
(name "libharu")
--
2.12.2
next reply other threads:[~2017-04-09 20:49 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-09 20:47 Ricardo Wurmus [this message]
2017-04-09 20:47 ` bug#26426: [PATCH 2/2] gnu: frescobaldi: Update to 3.0.0 Ricardo Wurmus
2017-04-10 9:13 ` Ludovic Courtès
2017-04-10 19:44 ` Leo Famulari
2017-04-11 7:59 ` Ricardo Wurmus
2017-04-10 9:12 ` bug#26425: [PATCH 1/2] gnu: Add python-poppler-qt5 Ludovic Courtès
2017-04-11 8:06 ` Ricardo Wurmus
2017-04-22 21:13 ` Ricardo Wurmus
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170409204753.24456-1-rekado@elephly.net \
--to=rekado@elephly.net \
--cc=26425@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).