1 # Copyright 2019-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python2_7 python3_{6,7,8} pypy3 )
9 DESCRIPTION="Load a PEP 517 backend from inside the source tree"
10 HOMEPAGE="https://pypi.org/project/intreehooks https://github.com/takluyver/intreehooks"
11 SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
15 KEYWORDS="~amd64 ~x86"
19 dev-python/toml[${PYTHON_USEDEP}]
22 dev-python/setuptools[${PYTHON_USEDEP}]
25 distutils_enable_tests pytest
27 python_prepare_all() {
28 # replace pytoml with toml
29 sed -e 's:pytoml:toml:' \
30 -i setup.py intreehooks.py || die
32 distutils-r1_python_prepare_all
35 python_install_all() {
36 local -a DOCS=( README.rst )
37 use examples && dodoc -r examples
39 distutils-r1_python_install_all