1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 PYTHON_COMPAT=( python2_7 python3_{6,7,8} )
9 DESCRIPTION="Python Serial Port extension"
10 HOMEPAGE="https://github.com/pyserial/pyserial https://pypi.org/project/pyserial/"
11 SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
15 KEYWORDS="~alpha amd64 ~arm arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
19 dev-python/setuptools[${PYTHON_USEDEP}]
22 DOCS=( CHANGES.rst README.rst )
24 distutils_enable_sphinx documentation --no-autodoc
27 "${EPYTHON}" test/run_all_tests.py loop:// -v || die "Testing failed with ${EPYTHON}"
30 python_install_all() {
31 distutils-r1_python_install_all
34 docompress -x /usr/share/doc/${PF}/examples