1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python2_7 python3_{6..7} )
9 DESCRIPTION="Minimal AMF encoder and decoder for Python"
10 HOMEPAGE="https://pypi.python.org/pypi/Mini-AMF"
11 SRC_URI="https://github.com/zackw/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
18 RESTRICT="!test? ( test )"
20 COMMON_DEPEND="dev-python/defusedxml[${PYTHON_USEDEP}]
21 dev-python/six[${PYTHON_USEDEP}]"
22 RDEPEND="${COMMON_DEPEND}
23 dev-python/setuptools[${PYTHON_USEDEP}]"
24 DEPEND="${COMMON_DEPEND}
26 dev-python/coverage[${PYTHON_USEDEP}]
27 dev-python/flake8[${PYTHON_USEDEP}]
29 BDEPEND="doc? ( dev-python/sphinx )"
32 coverage run --source=miniamf setup.py test || die
35 python_compile_all() {
36 distutils-r1_python_compile
40 sphinx-build -b html . _build || die
44 python_install_all() {
45 use doc && local HTML_DOCS=( doc/_build/. )
48 distutils-r1_python_install_all