Skip to content

Commit

Permalink
py-pdf2image: new package (spack#36088)
Browse files Browse the repository at this point in the history
* py-pdf2image: new package

* py-pdf2image: 1.16.3 source now available on pypi

* Update var/spack/repos/builtin/packages/py-pdf2image/package.py

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>

---------

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
  • Loading branch information
heerener and adamjstewart authored Mar 20, 2023
1 parent 334bc69 commit 550bda3
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions var/spack/repos/builtin/packages/py-pdf2image/package.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)

from spack.package import *


class PyPdf2image(PythonPackage):
"""A python module that wraps the pdftoppm utility to convert PDF to PIL Image object"""

homepage = "https://pypi.org/project/pdf2image/"
pypi = "pdf2image/pdf2image-1.12.1.tar.gz"

version("1.16.3", sha256="74208810c2cef4d9e347769b8e62a52303982ddb4f2dfd744c7ab4b940ae287e")
version("1.12.1", sha256="a0d9906f5507192210a8d5d7ead63145e9dec4bccc4564b1fb644e923913c31c")

depends_on("py-setuptools", type="build")

depends_on("pil", type=("build", "run"))
depends_on("poppler", type=("build", "run"))

0 comments on commit 550bda3

Please sign in to comment.