# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

PYTHON_COMPAT=( python3_{12..14} )
DISTUTILS_USE_PEP517=setuptools
inherit distutils-r1 pypi

DESCRIPTION="A series of convenience functions to make basic image processing \
functions such as translation, rotation, resizing, skeletonization, displaying \
Matplotlib images, sorting contours, detecting edges, and much more easier with \
OpenCV and both Python 2.7 and Python 3."
HOMEPAGE="https://github.com/jrosebr1/imutils https://pypi.org/project/imutils/"
#SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"

LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64 arm arm64 x86"
IUSE="test"
RESTRICT="!test? ( test )"

#DOCS="README.md"

BDEPEND="
	test? (
		dev-python/pytest[${PYTHON_USEDEP}]
	)
"

distutils_enable_tests pytest