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})
12 DESCRIPTION="Self-service finite-state machines for the programmer on the go"
13 HOMEPAGE="https://github.com/glyph/automat https://pypi.org/project/Automat/"
14 SRC_URI="mirror://pypi/${MYPN:0:1}/${MYPN}/${MYP}.tar.gz"
18 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux"
20 RESTRICT="!test? ( test )"
23 dev-python/attrs[${PYTHON_USEDEP}]
24 dev-python/six[${PYTHON_USEDEP}]
28 dev-python/setuptools_scm[${PYTHON_USEDEP}]
29 dev-python/m2r[${PYTHON_USEDEP}]
30 test? ( dev-python/pytest[${PYTHON_USEDEP}] )
35 python_prepare_all() {
37 # Remove since this is upstream benchmarking tests
38 rm -r benchmark || die "FAILED to remove benchmark tests"
40 distutils-r1_python_prepare_all
44 PYTHONPATH="${S}/test:${BUILD_DIR}/lib" py.test -v || die "Tests failed under ${EPYTHON}"
50 dodoc docs/examples/*.py
52 distutils-r1_src_install
56 einfo "For additional visualization functionality install these optional dependencies"
57 einfo " >=dev-python/twisted-16.1.1"
58 einfo " media-gfx/graphviz[python]"