summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEkaterina Vaartis <vaartis@kotobank.ch>2021-05-07 17:26:58 +0300
committerSam James <sam@gentoo.org>2021-05-31 14:11:31 +0000
commit541a457edca2ef9a28fda67c3da29c5fe9059dd0 (patch)
tree1ea02f059e66042a44bc769b463c19e457761f1d /dev-python/cloudscraper
parentmedia-libs/libass: ppc64 stable wrt bug #788052 (diff)
downloadgentoo-541a457edca2ef9a28fda67c3da29c5fe9059dd0.tar.gz
gentoo-541a457edca2ef9a28fda67c3da29c5fe9059dd0.tar.bz2
gentoo-541a457edca2ef9a28fda67c3da29c5fe9059dd0.zip
dev-python/cloudscraper: New package
Signed-off-by: Ekaterina Vaartis <vaartis@kotobank.ch> Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-python/cloudscraper')
-rw-r--r--dev-python/cloudscraper/Manifest1
-rw-r--r--dev-python/cloudscraper/cloudscraper-1.2.58.ebuild39
-rw-r--r--dev-python/cloudscraper/metadata.xml21
3 files changed, 61 insertions, 0 deletions
diff --git a/dev-python/cloudscraper/Manifest b/dev-python/cloudscraper/Manifest
new file mode 100644
index 000000000000..98e74403f05a
--- /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 000000000000..7f9eda6f17c5
--- /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 000000000000..908f6165a7b9
--- /dev/null
+++ b/dev-python/cloudscraper/metadata.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person" proxied="yes">
+ <email>vaartis@kotobank.ch</email>
+ <name>Ekaterina Vaartis</name>
+ </maintainer>
+ <maintainer type="project" proxied="proxy">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <longdescription lang="en">
+ A simple Python module to bypass Cloudflare's anti-bot page (also known as "I'm Under Attack Mode", or IUAM),
+ implemented with Requests
+ </longdescription>
+ <upstream>
+ <remote-id type="github">venomous/cloudscraper</remote-id>
+ <remote-id type="pypi">cloudscraper</remote-id>
+ </upstream>
+ <stabilize-allarches/>
+</pkgmetadata>