1 # Copyright 2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python3_{6,7,8,9} )
7 DISTUTILS_USE_SETUPTOOLS=rdepend
13 DESCRIPTION="Python wrapper for the Cloudflare Client API v4"
14 HOMEPAGE="https://github.com/cloudflare/python-cloudflare"
15 SRC_URI="https://github.com/cloudflare/${MY_PN}/archive/${PV}.tar.gz -> ${MY_P}.tar.gz"
17 LICENSE="MIT-with-advertising"
23 dev-python/requests[${PYTHON_USEDEP}]
24 dev-python/pyyaml[${PYTHON_USEDEP}]
25 dev-python/jsonlines[${PYTHON_USEDEP}]
26 dev-python/beautifulsoup4[${PYTHON_USEDEP}]
29 S="${WORKDIR}/${MY_P}"
32 sed -i -e "s:packages=.*:packages=['cli4', 'CloudFlare'],:" -i setup.py || die
33 sed -i -e "/data_files = /d" -i setup.py || die
34 distutils-r1_src_prepare
37 python_install_all() {
40 docompress -x /usr/share/doc/${PF}/examples
43 newman cli4/cli4.man cli4.1
45 distutils-r1_python_install_all