# automatically generated by g-sorcery
# please do not edit this file

EAPI=8

REALNAME="${PN}"
LITERALNAME="${PN}"
REALVERSION="${PV}"
DIGEST_SOURCES="yes"
PYTHON_COMPAT=( python{3_11,3_12,3_13,3_14} )
DISTUTILS_USE_PEP517=standalone

inherit python-r1 gs-pypi

DESCRIPTION="Cortex-M debugger for Python"

HOMEPAGE="https://github.com/pyocd/pyOCD"
LICENSE="Apache-2.0"
SRC_URI="https://files.pythonhosted.org/packages/source/${REALNAME::1}/${REALNAME}/${REALNAME}-${REALVERSION}.tar.gz"
SOURCEFILE="${REALNAME}-${REALVERSION}.tar.gz"
RESTRICT="test"

SLOT="0"
KEYWORDS="~amd64 ~x86"

IUSE="pemicro test"
DEPENDENCIES="dev-python/capstone[${PYTHON_USEDEP}]
	dev-python/cmsis-pack-manager[${PYTHON_USEDEP}]
	<dev-python/colorama-1.0[${PYTHON_USEDEP}]
	<dev-python/hidapi-1.0[${PYTHON_USEDEP}]
	>=dev-python/importlib-metadata-3.6[${PYTHON_USEDEP}]
	dev-python/importlib-resources[${PYTHON_USEDEP}]
	<dev-python/intelhex-3.0[${PYTHON_USEDEP}]
	<dev-python/intervaltree-4.0[${PYTHON_USEDEP}]
	<dev-python/lark-2.0[${PYTHON_USEDEP}]
	dev-python/libusb-package[${PYTHON_USEDEP}]
	<dev-python/natsort-9.0[${PYTHON_USEDEP}]
	<dev-python/prettytable-4.0[${PYTHON_USEDEP}]
	<dev-python/pyelftools-1.0[${PYTHON_USEDEP}]
	dev-python/pylink-square[${PYTHON_USEDEP}]
	<dev-python/pyusb-2.0[${PYTHON_USEDEP}]
	<dev-python/pyyaml-7.0[${PYTHON_USEDEP}]
	<dev-python/typing-extensions-5.0[${PYTHON_USEDEP}]
	pemicro? ( dev-python/pyocd-pemicro[${PYTHON_USEDEP}] )
	test? ( >=dev-python/pytest-6.2[${PYTHON_USEDEP}] )
	test? ( dev-python/pytest-cov[${PYTHON_USEDEP}] )
	test? ( dev-python/coverage[${PYTHON_USEDEP}] )
	test? ( dev-python/flake8[${PYTHON_USEDEP}] )
	test? ( dev-python/pylint[${PYTHON_USEDEP}] )
	test? ( dev-python/tox[${PYTHON_USEDEP}] )"
BDEPEND="${DEPENDENCIES}"
RDEPEND="${DEPENDENCIES}"