# Copyright 2026 Nadeŭka <me+oss@nadevko.cc>
# Distributed under the terms of the GNU General Public License v2
EAPI=8

DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{7..15} )

inherit distutils-r1

DESCRIPTION='The hassle-free cursor building toolbox'
HOMEPAGE='
	https://pypi.org/project/clickgen
	https://github.com/ful1e5/clickgen
'

if [[ $PV == 9999 ]]; then
	inherit git-r3
	EGIT_REPO_URI=https://github.com/ful1e5/clickgen.git
else
	inherit pypi
	KEYWORDS='~amd64 ~arm64 ~x86'
fi

LICENSE=MIT
SLOT=0

RDEPEND="
	>=dev-python/attrs-15.0.0[${PYTHON_USEDEP}]
	>=dev-python/numpy-1.21.6[${PYTHON_USEDEP}]
	>=dev-python/pillow-8.1.1[${PYTHON_USEDEP}]
	>=dev-python/pyyaml-6.0.1[${PYTHON_USEDEP}]
	>=dev-python/toml-0.10.2[${PYTHON_USEDEP}]
"
BDEPEND="test? ( ${RDEPEND} )"

EPYTEST_PLUGINS=()
distutils_enable_tests pytest