Files
guru/dev-python/pillow-heif/pillow-heif-0.22.0.ebuild
Takuya Wakazono d3c82a0fb6 dev-python/pillow-heif: add 0.22.0
Signed-off-by: Takuya Wakazono <pastalian46@gmail.com>
2025-03-18 01:11:28 +09:00

48 lines
1.0 KiB
Bash

# 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