summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2021-06-21 17:34:36 -0700
committerZac Medico <zmedico@gentoo.org>2021-06-21 17:52:28 -0700
commitd804dfa0aa9ffeae731255372171ce6fca461950 (patch)
tree3273f9529b217e2c3e224a18db619eddf9b9f9fb /dev-python/agate
parentgui-libs/libhandy: Version bump to 1.2.3 (diff)
downloadgentoo-d804dfa0aa9ffeae731255372171ce6fca461950.tar.gz
gentoo-d804dfa0aa9ffeae731255372171ce6fca461950.tar.bz2
gentoo-d804dfa0aa9ffeae731255372171ce6fca461950.zip
dev-python/agate: add xml test-against dependency
Bug: https://bugs.gentoo.org/797397 Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Zac Medico <zmedico@gentoo.org>
Diffstat (limited to 'dev-python/agate')
-rw-r--r--dev-python/agate/agate-1.6.2.ebuild12
1 files changed, 9 insertions, 3 deletions
diff --git a/dev-python/agate/agate-1.6.2.ebuild b/dev-python/agate/agate-1.6.2.ebuild
index 390df28bbaba..fd3497ce4719 100644
--- a/dev-python/agate/agate-1.6.2.ebuild
+++ b/dev-python/agate/agate-1.6.2.ebuild
@@ -13,8 +13,12 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
-IUSE="test"
+IUSE="test +xml"
RESTRICT="!test? ( test )"
+
+# Other packages have BDEPEND="test? ( dev-python/agate[xml] )"
+LEATHER_VERSION_DEP=">=dev-python/leather-0.3.2"
+TEST_AGAINST_RDEPEND="xml? ( ${LEATHER_VERSION_DEP}[xml,${PYTHON_USEDEP}] )"
RDEPEND="
>=dev-python/six-1.9.0[${PYTHON_USEDEP}]
>=dev-python/pytimeparse-1.1.5[${PYTHON_USEDEP}]
@@ -23,9 +27,11 @@ RDEPEND="
>=dev-python/isodate-0.5.4[${PYTHON_USEDEP}]
>=dev-python/pyicu-2.4.2[${PYTHON_USEDEP}]
>=dev-python/python-slugify-1.2.1[${PYTHON_USEDEP}]
- >=dev-python/leather-0.3.2[${PYTHON_USEDEP}]
+ ${LEATHER_VERSION_DEP}[${PYTHON_USEDEP}]
+
+ ${TEST_AGAINST_RDEPEND}
"
-BDEPEND="test? ( >=dev-python/leather-0.3.2[xml,${PYTHON_USEDEP}] )"
+BDEPEND="test? ( ${LEATHER_VERSION_DEP}[xml,${PYTHON_USEDEP}] )"
distutils_enable_tests pytest