1 # Copyright 1999-2018 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( pypy{,3} python{2_7,3_{4,5,6,7}} )
7 PYTHON_REQ_USE="xml(+)"
11 DESCRIPTION="A wrapper around the mediainfo library"
12 HOMEPAGE="https://github.com/sbraz/pymediainfo"
13 SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
17 KEYWORDS="~amd64 ~x86"
21 dev-python/setuptools[${PYTHON_USEDEP}]
22 media-libs/libmediainfo
25 dev-python/setuptools[${PYTHON_USEDEP}]
26 dev-python/setuptools_scm[${PYTHON_USEDEP}]
28 dev-python/alabaster[${PYTHON_USEDEP}]
29 dev-python/sphinx[${PYTHON_USEDEP}]
33 dev-python/pytest[${PYTHON_USEDEP}]
37 python_compile_all() {
39 sphinx-build docs docs/_build/html || die
40 HTML_DOCS=( docs/_build/html/. )
45 # Skip a test which requires network access
46 pytest -vv tests/test_pymediainfo.py -k "not MediaInfoURLTest" \
47 || die "tests failed with ${EPYTHON}"