# Copyright 2021-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 PYTHON_COMPAT=( python3_{9..11} ) DISTUTILS_USE_SETUPTOOLS=bdepend inherit distutils-r1 pypi DESCRIPTION="Command-line TOML/JSON/INI/YAML/XML processor using jq c bindings" HOMEPAGE="https://pypi.org/project/wildq/ https://github.com/ahmet2mir/wildq" LICENSE="Apache-2.0" SLOT="0" KEYWORDS="~amd64" IUSE="hcl toml xml" RDEPEND=" dev-python/jq[${PYTHON_USEDEP}] hcl? ( dev-python/pyhcl[${PYTHON_USEDEP}] ) toml? ( dev-python/toml[${PYTHON_USEDEP}] ) xml? ( dev-python/xmltodict[${PYTHON_USEDEP}] ) " python_prepare_all() { # Unpin install_requires versions. sed -e "s|^\\([ []'[[:alnum:]]\+\\)>=[^']*|\\1|" -i setup.py || die distutils-r1_python_prepare_all }