# automatically generated by g-sorcery
# please do not edit this file

EAPI=8

REALNAME="${PN}"
LITERALNAME="${PN}"
REALVERSION="${PV}"
DIGEST_SOURCES="yes"
PYTHON_COMPAT=( python{3_11,3_12,3_13,3_14} )
DISTUTILS_USE_PEP517=standalone

inherit python-r1 gs-pypi

DESCRIPTION="cwe2 is a CWE common weakness enumeration library for Python"

HOMEPAGE="https://github.com/nexB/cwe2"
LICENSE="MIT and LicenseRef-scancode-cwe-tou"
SRC_URI="https://files.pythonhosted.org/packages/source/${REALNAME::1}/${REALNAME}/${REALNAME}-${REALVERSION}.tar.gz"
SOURCEFILE="${REALNAME}-${REALVERSION}.tar.gz"
RESTRICT="test"

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

IUSE="docs testing"
DEPENDENCIES=">=dev-python/importlib-resources-5.10.2[${PYTHON_USEDEP}]
	docs? ( >=dev-python/sphinx-5.0.2[${PYTHON_USEDEP}] )
	docs? ( >=dev-python/sphinx-rtd-theme-1.0.0[${PYTHON_USEDEP}] )
	docs? ( dev-python/sphinx-reredirects[${PYTHON_USEDEP}] )
	docs? ( >=dev-python/doc8-0.11.2[${PYTHON_USEDEP}] )
	testing? ( >=dev-python/pytest-6.0[${PYTHON_USEDEP}] )
	testing? ( >=dev-python/pytest-xdist-2.0[${PYTHON_USEDEP}] )
	testing? ( dev-python/aboutcode-toolkit[${PYTHON_USEDEP}] )
	testing? ( >=dev-python/pycodestyle-2.8.0[${PYTHON_USEDEP}] )
	testing? ( >=dev-python/black-22.3.0[${PYTHON_USEDEP}] )
	testing? ( >=dev-python/isort-5.10.1[${PYTHON_USEDEP}] )
	testing? ( >=dev-python/doc8-0.11.1[${PYTHON_USEDEP}] )"
BDEPEND="${DEPENDENCIES}"
RDEPEND="${DEPENDENCIES}"