[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/08: gnu: Add python-pdf2image.
|
From: |
guix-commits |
|
Subject: |
02/08: gnu: Add python-pdf2image. |
|
Date: |
Wed, 17 Jan 2024 05:19:45 -0500 (EST) |
mothacehe pushed a commit to branch master
in repository guix.
commit 4acaa72e7b7d448dd24b1776331fb245053af51e
Author: Troy Figiel <troy@troyfigiel.com>
AuthorDate: Sat Jan 13 23:21:44 2024 +0100
gnu: Add python-pdf2image.
* gnu/packages/python-xyz.scm (python-pdf2image): New variable.
---
gnu/packages/python-xyz.scm | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index ceab4f0993..4c7c82204e 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -9230,6 +9230,39 @@ also add custom data, viewing options, and passwords to
PDF files. It can
retrieve text and metadata from PDFs as well as merge entire files together.")
(license license:bsd-3)))
+(define-public python-pdf2image
+ (package
+ (name "python-pdf2image")
+ (version "1.17.0")
+ ;; No tests in the PyPI tarball.
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/Belval/pdf2image")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0xd8q939zqa8flfcdhbgyadiwqb8sgnd42cbr6n1l2jl9fnix45v"))))
+ (build-system pyproject-build-system)
+ (arguments
+ ;; The following excluded tests assume hardcoded binary paths to
+ ;; /usr/bin/pdftoppm and /usr/bin/pdftocairo.
+ '(#:test-flags '("--exclude=^test_use_poppler_path$"
+
"--exclude=^test_use_poppler_path_with_trailing_slash$")))
+ (propagated-inputs (list python-pillow))
+ (inputs (list poppler))
+ (native-inputs (list python-nose which))
+ (home-page "https://github.com/Belval/pdf2image")
+ (synopsis
+ "Python wrapper around @command{pdftoppm} and @command{pdftocairo}")
+ (description
+ "This package provides a Python API wrapping the @command{pdftoppm} and
+@command{pdftocairo} command line tools. It can convert @file{PDF} files to a
+Python list with elements of type @code{PIL.Image} (from the
+@code{python-pillow} library).")
+ (license license:expat)))
+
(define-public python-pikepdf
(package
(name "python-pikepdf")
- branch master updated (299ce524c9 -> b3e0a973bc), guix-commits, 2024/01/17
- 01/08: image: Consider grub-efi-removable-bootloader to be EFI bootloader., guix-commits, 2024/01/17
- 02/08: gnu: Add python-pdf2image.,
guix-commits <=
- 04/08: gnu: Add python-typeguard-4., guix-commits, 2024/01/17
- 05/08: gnu: Add python-pandas-stubs., guix-commits, 2024/01/17
- 06/08: gnu: Add python-pandera., guix-commits, 2024/01/17
- 03/08: gnu: Add python-concurrent-log-handler., guix-commits, 2024/01/17
- 08/08: gnu: powertop: Correct package description., guix-commits, 2024/01/17
- 07/08: gnu: Add tgif., guix-commits, 2024/01/17