emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#46654: closed ([PATCH 1/2] gnu: Add python-pdfminer.six.)


From: GNU bug Tracking System
Subject: bug#46654: closed ([PATCH 1/2] gnu: Add python-pdfminer.six.)
Date: Sun, 21 Feb 2021 00:24:02 +0000

Your message dated Sun, 21 Feb 2021 01:23:02 +0100
with message-id <874ki6z2u1.fsf@nicolasgoaziou.fr>
and subject line Re: [bug#46654] [PATCH 2/2] gnu: setzer: Update to 0.4.1.
has caused the debbugs.gnu.org bug report #46654,
regarding [PATCH 1/2] gnu: Add python-pdfminer.six.
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
46654: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=46654
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: [PATCH 1/2] gnu: Add python-pdfminer.six. Date: Sat, 20 Feb 2021 04:05:03 -0300
* gnu/packages/python-xyz.scm (python-pdfminer.six): New variable.
---
 gnu/packages/python-xyz.scm | 49 +++++++++++++++++++++++++++++++++++++
 1 file changed, 49 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index a504bb521b..fe55d9b74e 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -12251,6 +12251,55 @@ encoding algorithms to do fuzzy string matching.")
 module, adding support for Unicode strings.")
     (license license:bsd-2)))
 
+(define-public python-pdfminer.six
+  (package
+    (name "python-pdfminer.six")
+    (version "20201018")
+    ;; There are no tests in the PyPI tarball.
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/pdfminer/pdfminer.six";)
+             (commit version)))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1a2fxxnnjqbx344znpvx7cnv1881dk6585ibw01inhfq3w6yj2lr"))))
+    (build-system python-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         ;; Tests write to the source tree.
+         (add-after 'unpack 'make-git-checkout-writable
+           (lambda _
+             (for-each make-file-writable (find-files "."))
+             #t))
+         (replace 'check
+           (lambda _
+             (invoke "make" "test")))
+         (add-before 'reset-gzip-timestamps 'make-files-writable
+           (lambda* (#:key outputs #:allow-other-keys)
+             (let ((out (assoc-ref outputs "out")))
+               (for-each make-file-writable
+                         (find-files out "\\.gz$"))
+               #t))))))
+    (propagated-inputs
+     `(("python-chardet" ,python-chardet)
+       ("python-cryptography" ,python-cryptography)
+       ("python-sortedcontainers"
+        ,python-sortedcontainers)))
+    (native-inputs
+     `(("python-nose" ,python-nose)
+       ("python-tox" ,python-tox)))
+    (home-page "https://github.com/pdfminer/pdfminer.six";)
+    (synopsis "PDF parser and analyzer")
+    (description "@code{pdfminer.six} is a community maintained fork of
+the original PDFMiner.  It is a tool for extracting information from PDF
+documents.  It focuses on getting and analyzing text data.  Pdfminer.six
+extracts the text from a page directly from the sourcecode of the PDF.  It
+can also be used to get the exact location, font or color of the text.")
+    (license license:expat)))
+
 (define-public python-rarfile
   (package
     (name "python-rarfile")
-- 
2.30.1




--- End Message ---
--- Begin Message --- Subject: Re: [bug#46654] [PATCH 2/2] gnu: setzer: Update to 0.4.1. Date: Sun, 21 Feb 2021 01:23:02 +0100 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
Hello,

Vinicius Monego <monego@posteo.net> writes:

> * gnu/packages/gnome.scm (setzer): Update to 0.4.1.
> [inputs]: Add python-pdfminer.six.

I used python-pdfminer-six name instead of python-pdfminer.six, and
applied both patches.

Thank you.

Regards,
-- 
Nicolas Goaziou


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]