Add package py-imagehash (#35015)

* Add package `py-imagehash`

* Use virtual package for `py-pillow`
This commit is contained in:
Thomas Bouvier 2023-01-20 19:28:04 +01:00 committed by GitHub
parent 62f83dfb6d
commit bdc0b73b7a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,23 @@
# 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 PyImagehash(PythonPackage):
"""A Python Perceptual Image Hashing Module"""
homepage = "https://github.com/JohannesBuchner/imagehash"
pypi = "ImageHash/ImageHash-4.3.1.tar.gz"
maintainers = ["thomas-bouvier"]
version("4.3.1", sha256="7038d1b7f9e0585beb3dd8c0a956f02b95a346c0b5f24a9e8cc03ebadaf0aa70")
depends_on("py-setuptools", type="build")
depends_on("pil", type=("build", "run"))
depends_on("py-numpy", type=("build", "run"))
depends_on("py-scipy", type=("build", "run"))
depends_on("py-pywavelets", type=("build", "run"))