commit: a68dc9756d7ec6c7b0ddb364ac9e37f7fd9fedd6 Author: Ekaterina Vaartis <vaartis <AT> kotobank <DOT> ch> AuthorDate: Fri Dec 2 15:12:02 2022 +0000 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> CommitDate: Sat Dec 3 08:53:04 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a68dc975
dev-python/cloudscraper: Add 1.2.65 Signed-off-by: Ekaterina Vaartis <vaartis <AT> kotobank.ch> Closes: https://github.com/gentoo/gentoo/pull/28290 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> dev-python/cloudscraper/Manifest | 1 + dev-python/cloudscraper/cloudscraper-1.2.65.ebuild | 40 ++++++++++++++++++++++ 2 files changed, 41 insertions(+) diff --git a/dev-python/cloudscraper/Manifest b/dev-python/cloudscraper/Manifest index e69de29bb2d1..da43c4fbd55f 100644 --- a/dev-python/cloudscraper/Manifest +++ b/dev-python/cloudscraper/Manifest @@ -0,0 +1 @@ +DIST cloudscraper-1.2.65.gh.tar.gz 111946 BLAKE2B 7b53819ceb3349c9e8bc24cfd3138119b46bd88daa639d1c29b7e7477f0fc2cb323b3e485832236eadf48be76d16a2dde93cadffe594fc7b7d43b24651de45eb SHA512 e885e7e0b7e91318da4b6d65165961fbae27951be9b4f05af96e7eeaf1e28e1146af52c10bf0b769f07fc04016998eed9146ec92504a591d81434a101c6d6850 diff --git a/dev-python/cloudscraper/cloudscraper-1.2.65.ebuild b/dev-python/cloudscraper/cloudscraper-1.2.65.ebuild new file mode 100644 index 000000000000..e078ea19abe5 --- /dev/null +++ b/dev-python/cloudscraper/cloudscraper-1.2.65.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8..10} ) + +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 -> ${P}.gh.tar.gz" + +LICENSE="AGPL-3" +SLOT="0" +KEYWORDS="~amd64 ~ppc64" + +RDEPEND=" + dev-python/pyparsing[${PYTHON_USEDEP}] + dev-python/requests-toolbelt[${PYTHON_USEDEP}] + dev-python/requests[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/js2py[${PYTHON_USEDEP}] + dev-python/pytest-forked[${PYTHON_USEDEP}] + dev-python/pytest-timeout[${PYTHON_USEDEP}] + dev-python/responses[${PYTHON_USEDEP}] + net-libs/nodejs + ) +" + +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" +}
