summaryrefslogtreecommitdiff
path: root/dev-python/playwright-captcha
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/playwright-captcha')
-rw-r--r--dev-python/playwright-captcha/Manifest1
-rw-r--r--dev-python/playwright-captcha/metadata.xml12
-rw-r--r--dev-python/playwright-captcha/playwright-captcha-0.1.5.ebuild40
3 files changed, 53 insertions, 0 deletions
diff --git a/dev-python/playwright-captcha/Manifest b/dev-python/playwright-captcha/Manifest
new file mode 100644
index 000000000000..89b949cc974b
--- /dev/null
+++ b/dev-python/playwright-captcha/Manifest
@@ -0,0 +1 @@
+DIST playwright-captcha-0.1.5.gh.tar.gz 36718 BLAKE2B b63b0b2f966fa586a138357bf2bf94eb7ebc34d089602b17a0427fdfc61d1f378c39ea86f13faea599554aa2b8e2a7b5b0c2ffe7a9f77f0169e25bbe398244eb SHA512 a63842fb0472d58c94b93b774b5b3baf2bdab34c39bfb31b3b5fb8620c5677b501ba09b9e8e8805397c936f5b12a9d264db0b0084a605699e30152be0b9beafe
diff --git a/dev-python/playwright-captcha/metadata.xml b/dev-python/playwright-captcha/metadata.xml
new file mode 100644
index 000000000000..d1d9f7388499
--- /dev/null
+++ b/dev-python/playwright-captcha/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://srcux.com/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <name>Pavel Sobolev</name>
+ <email>contact@paveloom.dev</email>
+ </maintainer>
+ <upstream>
+ <bugs-to>https://github.com/techinz/playwright-captcha/issues</bugs-to>
+ </upstream>
+ <origin>srcux</origin>
+</pkgmetadata>
diff --git a/dev-python/playwright-captcha/playwright-captcha-0.1.5.ebuild b/dev-python/playwright-captcha/playwright-captcha-0.1.5.ebuild
new file mode 100644
index 000000000000..a5a221ecf5d2
--- /dev/null
+++ b/dev-python/playwright-captcha/playwright-captcha-0.1.5.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+# No tags in the repository, but there are tags on PyPI
+EGIT_COMMIT="b316e4f4989d7b2b9fdd9ee4826cf4aeb9cb1151"
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{13..14} )
+
+inherit distutils-r1
+
+DESCRIPTION="Automating captcha solving for Playwright"
+HOMEPAGE="
+ https://github.com/techinz/playwright-captcha
+ https://pypi.org/project/playwright-captcha/
+"
+SRC_URI="https://github.com/techinz/playwright-captcha/archive/${EGIT_COMMIT}.tar.gz -> ${P}.gh.tar.gz"
+
+S="${WORKDIR}/${PN}-${EGIT_COMMIT}"
+
+# License file is different from the license field in `pyproject.toml`
+LICENSE="Apache-2.0 MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND="
+ dev-python/2captcha[${PYTHON_USEDEP}]
+ dev-python/playwright[${PYTHON_USEDEP}]
+ dev-python/python-dotenv[${PYTHON_USEDEP}]
+"
+
+EPYTEST_DESELECT=(
+ "tests/integration/test_cloudflare_click.py::TestCloudflareClickSolvers::test_click_interstitial_solver"
+ "tests/integration/test_cloudflare_click.py::TestCloudflareClickSolvers::test_click_turnstile_solver"
+)
+
+EPYTEST_PLUGINS=( pytest-asyncio )
+distutils_enable_tests pytest