commit: d3c82a0fb6b65063528847fca96c8aca72233e8c
Author: Takuya Wakazono <pastalian46 <AT> gmail <DOT> com>
AuthorDate: Mon Mar 17 15:16:47 2025 +0000
Commit: David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Mon Mar 17 16:11:28 2025 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=d3c82a0f
dev-python/pillow-heif: add 0.22.0
Signed-off-by: Takuya Wakazono <pastalian46 <AT> gmail.com>
dev-python/pillow-heif/Manifest | 1 +
dev-python/pillow-heif/pillow-heif-0.22.0.ebuild | 47 ++++++++++++++++++++++++
2 files changed, 48 insertions(+)
diff --git a/dev-python/pillow-heif/Manifest b/dev-python/pillow-heif/Manifest
index eb79d4e0a..8d4ad21d2 100644
--- a/dev-python/pillow-heif/Manifest
+++ b/dev-python/pillow-heif/Manifest
@@ -1 +1,2 @@
DIST pillow_heif-0.21.0.tar.gz 16178019 BLAKE2B
1ac057f4485331c36348f277b31d073dfe5d3aab69baaef0947449002fb095c81ffd562442f059afc29a19cafb3fa898b011c17a622963e6813a53dd2779c2f7
SHA512
9683b3eea9ea4dc0730bfab2e1163545ea31719b62cfd90a4f58aaf7ab401aef27afb7b9458c93daf9e5fa445b8f7f1ec3b3174fa9ae44513d9baaa10e777913
+DIST pillow_heif-0.22.0.tar.gz 18551571 BLAKE2B
60edcd7f1e6427651f85a2d8604b2a478646ba90cc1aeb09b768b7cf94b333d14e0d0d118d26d7ef68e6a79873d2d18f7f85ad0ae02ae81b8298e6c758ae01d0
SHA512
072de5e3afbfb373e36b51898f67e12d1abcd9a391e33b2dafe19372bb0f3ffca20ab1a7f7f8dcd0dc163a7c8aee27040613deb5d2adba0fd3b6c774cbff8c85
diff --git a/dev-python/pillow-heif/pillow-heif-0.22.0.ebuild
b/dev-python/pillow-heif/pillow-heif-0.22.0.ebuild
new file mode 100644
index 000000000..cebb12170
--- /dev/null
+++ b/dev-python/pillow-heif/pillow-heif-0.22.0.ebuild
@@ -0,0 +1,47 @@
+# Copyright 2024-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_EXT=1
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{11..13} )
+inherit distutils-r1 pypi
+
+DESCRIPTION="Python interface for libheif library"
+HOMEPAGE="
+ https://github.com/bigcat88/pillow_heif
+ https://pypi.org/project/pillow-heif/
+"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND="
+ !test? (
+ dev-python/pillow[${PYTHON_USEDEP}]
+ >=media-libs/libheif-1.17.6:=
+ )
+ test? (
+ dev-python/pillow[jpeg,lcms,webp,zlib,${PYTHON_USEDEP}]
+ >=media-libs/libheif-1.17.6:=[x265]
+ )
+"
+BDEPEND="
+ test? (
+ dev-python/defusedxml[${PYTHON_USEDEP}]
+ dev-python/numpy[${PYTHON_USEDEP}]
+ media-libs/opencv[png,python,${PYTHON_USEDEP}]
+ )
+"
+
+PATCHES=( "${FILESDIR}/${PN}-0.21.0-respect-cflags.patch" )
+
+EPYTEST_DESELECT=(
+ # only works with libeif-1.19.5
+ #
https://github.com/bigcat88/pillow_heif/pull/312/commits/d740dcce7d967d025c4100611cc7a4632aa3fc3a
+ "tests/read_test.py::test_heif_read_images"
+)
+
+distutils_enable_tests pytest