diff options
| author | Crucible <crucible@localhost> | 2026-10-19 21:49:31 -0500 |
|---|---|---|
| committer | Crucible <crucible@localhost> | 2026-10-19 21:49:31 -0500 |
| commit | 7381ef26a3e14a703da91508b2cc8606c34b804d (patch) | |
| tree | 1ded3c74a64f9591c982f01ed71ab968a8bfad24 /dev-python/playwright/playwright-1.64.0.ebuild | |
| parent | 3b4c7e627726016d50653b6dd2e06020a1915eac (diff) | |
| download | srcux-7381ef26a3e14a703da91508b2cc8606c34b804d.tar.gz srcux-7381ef26a3e14a703da91508b2cc8606c34b804d.tar.xz srcux-7381ef26a3e14a703da91508b2cc8606c34b804d.zip | |
Publish srcux candidate 0000000740-20261019-200200
Diffstat (limited to 'dev-python/playwright/playwright-1.64.0.ebuild')
| -rw-r--r-- | dev-python/playwright/playwright-1.64.0.ebuild | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/dev-python/playwright/playwright-1.64.0.ebuild b/dev-python/playwright/playwright-1.64.0.ebuild new file mode 100644 index 000000000000..e49e1625f7d2 --- /dev/null +++ b/dev-python/playwright/playwright-1.64.0.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{13..14} ) + +inherit distutils-r1 + +DESCRIPTION="Python version of the Playwright testing and automation library" +HOMEPAGE="https://github.com/microsoft/playwright-python" +SRC_URI="https://github.com/microsoft/playwright-python/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + +S="${WORKDIR}/playwright-python-${PV}" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + dev-util/playwright + + dev-python/greenlet[${PYTHON_USEDEP}] + dev-python/pyee[${PYTHON_USEDEP}] +" +BDEPEND=" + dev-python/setuptools-scm[${PYTHON_USEDEP}] +" + +PATCHES=( + "${FILESDIR}/${PN}-1.64.0-look-up-playwright-from-the-PATH.patch" +) + +EPYTEST_IGNORE=( + "playwright/_impl/__pyinstaller" +) + +distutils_enable_tests import-check + +export SETUPTOOLS_SCM_PRETEND_VERSION=${PV} + +python_prepare_all() { + # Installs a Python wrapper around the driver that + # does nothing except calling the driver + sed -e '/\[project\.scripts\]/,/^\s*$/d' -i pyproject.toml || die + + # Tries to download and extract the driver, + # but we have it in the system already + rm setup.py || die + + distutils-r1_python_prepare_all +} + +python_test() { + cd "${BUILD_DIR}/install$(python_get_sitedir)" || die + epytest --import-check +} |
