EAPI=8

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

inherit distutils-r1

DESCRIPTION="Unofficial DDNS client for Porkbun domains"
HOMEPAGE="https://github.com/mietzen/porkbun-ddns"
SRC_URI="https://github.com/mietzen/porkbun-ddns/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"

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

RDEPEND="
	acct-user/porkbun-ddns
	acct-group/porkbun-ddns
	dev-python/requests[${PYTHON_USEDEP}]
	dev-python/jinja2[${PYTHON_USEDEP}]
	dev-python/xdg-base-dirs[${PYTHON_USEDEP}]
"

BDEPEND="${RDEPEND}"