# 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_{9..14} pypy3 ) PYTHON_REQ_USE="xml(+)" inherit distutils-r1 pypi DESCRIPTION="XML bomb protection for Python stdlib modules, an xml serialiser" HOMEPAGE="https://github.com/tiran/defusedxml https://pypi.org/project/defusedxml/" LICENSE="PSF-2" SLOT="0" KEYWORDS="~amd64" IUSE="examples" DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" python_test() { esetup.py test } python_install_all() { use examples && local EXAMPLES=( other/. ) distutils-r1_python_install_all }