1 # Copyright 2019-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python2_7 python3_{6,7,8} )
9 DESCRIPTION="An XML Schema validator and decoder"
10 HOMEPAGE="https://github.com/sissaschool/xmlschema https://pypi.org/project/xmlschema/"
11 SRC_URI="mirror://pypi/${PN::1}/${PN}/${P}.tar.gz"
15 KEYWORDS="~amd64 ~x86"
17 RESTRICT="!test? ( test )"
20 dev-python/elementpath[${PYTHON_USEDEP}]"
22 dev-python/setuptools[${PYTHON_USEDEP}]
24 dev-python/lxml[${PYTHON_USEDEP}]
25 $(python_gen_cond_dep 'dev-python/pathlib2[${PYTHON_USEDEP}]' -2)
29 "${EPYTHON}" xmlschema/tests/test_all.py -v ||
30 die "Tests fail with ${EPYTHON}"