summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorJen Herting <jen@herting.cc>2022-09-08 11:24:42 -0400
committerGitHub <noreply@github.com>2022-09-08 15:24:42 +0000
commit63d079cce9c532e81b85877f3f0cb3a05dd0a85b (patch)
tree034ba0afef2b2c931d3a7979443075f9f39037bf /var
parenta7fe1379419e2a62bb59d7879d47bc727027d1ee (diff)
downloadspack-63d079cce9c532e81b85877f3f0cb3a05dd0a85b.tar.gz
spack-63d079cce9c532e81b85877f3f0cb3a05dd0a85b.tar.bz2
spack-63d079cce9c532e81b85877f3f0cb3a05dd0a85b.tar.xz
spack-63d079cce9c532e81b85877f3f0cb3a05dd0a85b.zip
New package: py-pytesseract (#30765)
* Versions added for each dep, but I think I'll need to remove them * py-tesseract now builds and will import in python * Fixed flake style error as raised by pipeline * changed to proper python dependency * added pil as a dependency * Fixed flake style errors * [py-pytesseract] py-pillow and py-wheel are redundant * [py-pytesseract] - fixed spelling - removed unneeded dependency * [py-pytesseract] update import Co-authored-by: Viv Eric Hafener <vehrc@sporcbuild.rc.rit.edu>
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/py-pytesseract/package.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-pytesseract/package.py b/var/spack/repos/builtin/packages/py-pytesseract/package.py
new file mode 100644
index 0000000000..dca84a1ece
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-pytesseract/package.py
@@ -0,0 +1,19 @@
+# Copyright 2013-2022 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 PyPytesseract(PythonPackage):
+ """Python-tesseract is an Optical Character Recognition (OCR) Tool for python."""
+
+ homepage = "https://github.com/madmaze/pytesseract"
+ pypi = "pytesseract/pytesseract-0.3.8.tar.gz"
+
+ version("0.3.8", sha256="6148a01e4375760862e8f56ea718e22b5d13b281454df46ea8dac9807793fc5a")
+
+ depends_on("python@3.6:", type=("build", "run"))
+ depends_on("py-setuptools", type="build")
+ depends_on("pil", type=("build", "run"))