diff --git a/dev-python/cloudscraper/Manifest b/dev-python/cloudscraper/Manifest new file mode 100644 index 0000000000000..98e74403f05ac --- /dev/null +++ b/dev-python/cloudscraper/Manifest @@ -0,0 +1 @@ +DIST cloudscraper-1.2.58.tar.gz 110992 BLAKE2B b3e002d559ebdbb07686d74fe9967776f832397758653c2d6fe8ba766239d5744608fe6f321a0284c1da02a1ddb8257d7ce1931bb5adf71096e4151dbb9cb2a2 SHA512 bab8a9b00e891d2e0b982200de1a9a8fd800f554bda02624a963d0de19388880c4abf2ee32944177853eb7cb14e67521b0591e8d9430d1789425e67de9f1d467 diff --git a/dev-python/cloudscraper/cloudscraper-1.2.58.ebuild b/dev-python/cloudscraper/cloudscraper-1.2.58.ebuild new file mode 100644 index 0000000000000..7f9eda6f17c53 --- /dev/null +++ b/dev-python/cloudscraper/cloudscraper-1.2.58.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6..9} ) + +inherit distutils-r1 optfeature + +DESCRIPTION="A Python module to bypass Cloudflare's anti-bot page" +HOMEPAGE="https://github.com/VeNoMouS/cloudscraper" +SRC_URI="https://github.com/VeNoMouS/${PN}/archive/${PV}.tar.gz -> ${PF}.tar.gz" + +LICENSE="AGPL-3" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + dev-python/pyparsing[${PYTHON_USEDEP}] + dev-python/requests-toolbelt[${PYTHON_USEDEP}] + dev-python/requests[${PYTHON_USEDEP}] +" +BDEPEND="${RDEPEND} + test? ( + dev-python/js2py[${PYTHON_USEDEP}] + dev-python/pytest-forked[${PYTHON_USEDEP}] + dev-python/pytest-timeout[${PYTHON_USEDEP}] + dev-python/responses[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +pkg_postinst() { + optfeature "brotli decompresssion support" "dev-python/brotlipy" + + optfeature "js2py interpreter support" "dev-python/js2py" + optfeature "node.js interpreter support" "net-libs/nodejs" +} diff --git a/dev-python/cloudscraper/metadata.xml b/dev-python/cloudscraper/metadata.xml new file mode 100644 index 0000000000000..908f6165a7b98 --- /dev/null +++ b/dev-python/cloudscraper/metadata.xml @@ -0,0 +1,21 @@ + + + + + vaartis@kotobank.ch + Ekaterina Vaartis + + + proxy-maint@gentoo.org + Proxy Maintainers + + + A simple Python module to bypass Cloudflare's anti-bot page (also known as "I'm Under Attack Mode", or IUAM), + implemented with Requests + + + venomous/cloudscraper + cloudscraper + + +