guru/dev-python/cloup/cloup-3.0.2.ebuild
Henri Gasc 8baf6bf0f8
dev-python/cloup: new package, add 3.0.2
Signed-off-by: Henri Gasc <gasc@eurecom.fr>
2023-10-03 13:52:29 +02:00

35 lines
865 B
Bash

# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{10..12} )
inherit distutils-r1 pypi
DESCRIPTION="Click + option groups + constraints + aliases + help themes + ..."
HOMEPAGE="https://github.com/janluke/cloup https://pypi.org/project/cloup/"
SRC_URI="https://github.com/janluke/cloup/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
RDEPEND="
>=dev-python/click-8.0[${PYTHON_USEDEP}]
<dev-python/click-9.0[${PYTHON_USEDEP}]
"
BDEPEND="
dev-python/setuptools-scm[${PYTHON_USEDEP}]
"
DEPEND="${RDEPEND}"
distutils_enable_tests pytest
# distutils_enable_sphinx docs # The doc need dev-python/sphinx < 5, which we don't have
src_prepare() {
default
export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
}