1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python3_{6,7} )
9 DESCRIPTION="Read and write audio files' tags in Python"
10 HOMEPAGE="https://github.com/beetbox/mediafile"
11 SRC_URI="https://github.com/beetbox/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
15 KEYWORDS="~amd64 ~x86"
17 RESTRICT="!test? ( test )"
20 dev-python/setuptools[${PYTHON_USEDEP}]
21 doc? ( dev-python/sphinx )
22 test? ( dev-python/nose[${PYTHON_USEDEP}] )
25 >=dev-python/six-1.9.0[${PYTHON_USEDEP}]
26 >=media-libs/mutagen-1.33.0[${PYTHON_USEDEP}]
30 python_compile_all() {
33 rm -r docs/_build/html/_sources || die
34 HTML_DOCS=( docs/_build/html/. )
39 nosetests -v || die "Tests failed"
41 sphinx-build -W -q -b html docs __doctest || die "Doc tests failed"