1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 PYTHON_COMPAT=( python{2_7,3_6,3_7} )
9 DESCRIPTION="Python parser for the CommonMark Markdown spec"
10 HOMEPAGE="https://github.com/rtfd/CommonMark-py"
11 SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
15 KEYWORDS="alpha amd64 arm arm64 hppa ia64 ppc ppc64 sparc x86 ~amd64-linux ~x86-linux"
17 RESTRICT="!test? ( test )"
20 dev-python/future[${PYTHON_USEDEP}]
24 >=dev-python/hypothesis-3.7.1[${PYTHON_USEDEP}]
26 dev-python/setuptools[${PYTHON_USEDEP}]
30 PYTHONIOENCODING='utf8' \
36 # Fix file collision with app-text/cmark, see bug #627034
37 sed -i -e "s:'cmark\( = commonmark.cmark\:main'\):'cmark.py\1:" \
42 ewarn "/usr/bin/cmark has been renamed to /usr/bin/cmark.py due file"
43 ewarn "collision with app-text/cmark (see bug #627034)"