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

EAPI=8

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

SRC_URI="https://github.com/Shm013/${PN}/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz"
KEYWORDS="~amd64 ~x86"

inherit distutils-r1

DESCRIPTION="Freenom DNS Authenticator plugin for Certbot (Let's Encrypt Client)"
HOMEPAGE="https://github.com/Shm013/certbot-dns-freenom"

LICENSE="Apache-2.0"
SLOT="0"

RDEPEND="
	>=app-crypt/certbot-1.17.0[${PYTHON_USEDEP}]
	>=app-crypt/acme-1.17.0[${PYTHON_USEDEP}]
	dev-python/zope-interface[${PYTHON_USEDEP}]
	>=dev-python/freenom-0.0.2[${PYTHON_USEDEP}]
"

PATCHES=(
	"${FILESDIR}"/${P}-remove-zope.patch
)