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

EAPI=8

PYTHON_COMPAT=( python3_{10..11} )
# Next release will move to hatchling:
# https://github.com/micropython/micropython/pull/10645
#DISTUTILS_USE_PEP517=hatchling
DISTUTILS_USE_PEP517=setuptools

inherit distutils-r1 pypi

DESCRIPTION="MicroPython remote control"
HOMEPAGE="https://github.com/micropython/micropython/tree/master/tools/mpremote"

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

RDEPEND="
	dev-python/pyserial[${PYTHON_USEDEP}]
	dev-python/importlib-metadata[${PYTHON_USEDEP}]
"

# The package might not have a test suite:
# https://github.com/orgs/micropython/discussions/11308
#distutils_enable_tests pytest