# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DESCRIPTION="Simple but convenient CLI-based Matrix client app for sending and receiving."
HOMEPAGE="https://github.com/8go/matrix-commander"
SRC_URI="https://github.com/8go/matrix-commander/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="~amd64"

PYTHON_COMPAT=(python3_{11,12,13,14})
DISTUTILS_USE_PEP517="setuptools"
DISTUTILS_SINGLE_IMPL="yes"
inherit distutils-r1

DEPEND="$(python_gen_cond_dep '
	dev-python/aiohttp[${PYTHON_USEDEP}]
	>=dev-python/aiofiles-0.6.0[${PYTHON_USEDEP}]
	dev-python/async-timeout[${PYTHON_USEDEP}]
	dev-python/emoji[${PYTHON_USEDEP}]
	dev-python/markdown[${PYTHON_USEDEP}]
	>=dev-python/matrix-nio-0.14.1[encryption,${PYTHON_USEDEP}]
	dev-python/notify2[${PYTHON_USEDEP}]
	dev-python/pillow[${PYTHON_USEDEP}]
	dev-python/python-magic[${PYTHON_USEDEP}]
	dev-python/pyxdg[${PYTHON_USEDEP}]
')"
RDEPEND="${DEPEND}"
BDEPEND=""

#TODO: message about optional dependencies. See https://github.com/8go/matrix-commander/blob/master/PyPi-Instructions.md