From: MichaƂ Bartoszkiewicz Date: Thu, 21 May 2020 18:47:15 +0000 (+0200) Subject: dev-python/cloudflare: new package X-Git-Url: https://git.bzium.org/embe/overlay.git/commitdiff_plain/7f041f04bcec31af2d7fe696b259d471f6ea3f8d?ds=inline dev-python/cloudflare: new package --- diff --git a/dev-python/cloudflare/Manifest b/dev-python/cloudflare/Manifest new file mode 100644 index 0000000..2f86999 --- /dev/null +++ b/dev-python/cloudflare/Manifest @@ -0,0 +1 @@ +DIST python-cloudflare-2.7.1.tar.gz 70085 BLAKE2B 311daf7a8069d93b1deb2839e4fc26506748639e63681012e07830d92f5840830a5a34e569e5ace44ff04932e2fce80a7e6e3d5e0e64fd5c4f9fe3c13020cc83 SHA512 26cc49320e3249b0855bbf2ca2a5749f26641d801c8de3e6684e3f1c794c79b4b4588a2fb02bbf33c566adc7e466da7c5b3d4ff5b35d774c2ee6c3d381503ff0 diff --git a/dev-python/cloudflare/cloudflare-2.7.1.ebuild b/dev-python/cloudflare/cloudflare-2.7.1.ebuild new file mode 100644 index 0000000..687b4d7 --- /dev/null +++ b/dev-python/cloudflare/cloudflare-2.7.1.ebuild @@ -0,0 +1,46 @@ +# Copyright 2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8} ) +DISTUTILS_USE_SETUPTOOLS=rdepend +inherit distutils-r1 + +MY_PN="python-${PN}" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="Python wrapper for the Cloudflare Client API v4" +HOMEPAGE="https://github.com/cloudflare/python-cloudflare" +SRC_URI="https://github.com/cloudflare/${MY_PN}/archive/${PV}.tar.gz -> ${MY_P}.tar.gz" + +LICENSE="MIT-with-advertising" +SLOT="0" +KEYWORDS="~amd64" +IUSE="examples" + +RDEPEND=" + dev-python/requests[${PYTHON_USEDEP}] + dev-python/future[${PYTHON_USEDEP}] + dev-python/pyyaml[${PYTHON_USEDEP}] + dev-python/jsonlines[${PYTHON_USEDEP}] +" + +S="${WORKDIR}/${MY_P}" + +src_prepare() { + sed -i -e "s:packages=.*:packages=['cli4', 'CloudFlare'],:" -i setup.py || die + sed -i -e "/data_files = /d" -i setup.py || die + distutils-r1_src_prepare +} + +python_install_all() { + if use examples; then + dodoc -r examples + docompress -x /usr/share/doc/${PF}/examples + fi + + newman cli4/cli4.man cli4.1 + + distutils-r1_python_install_all +}