diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-05-30 11:44:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-05-30 11:44:06 +0100 |
commit | f516638b7fe9592837389826a6152a7e1b251c54 (patch) | |
tree | 8bfecb640b7b6403d7a3d662d923eed630033da7 /dev-python/selenium/selenium-3.141.0-r1.ebuild | |
parent | 1a61119f9f7b057830e2ce0563f913ec86f282ad (diff) |
gentoo resync : 30.05.2020
Diffstat (limited to 'dev-python/selenium/selenium-3.141.0-r1.ebuild')
-rw-r--r-- | dev-python/selenium/selenium-3.141.0-r1.ebuild | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/dev-python/selenium/selenium-3.141.0-r1.ebuild b/dev-python/selenium/selenium-3.141.0-r1.ebuild new file mode 100644 index 000000000000..ffe849757169 --- /dev/null +++ b/dev-python/selenium/selenium-3.141.0-r1.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8} ) + +inherit distutils-r1 + +DESCRIPTION="Python language binding for Selenium Remote Control" +HOMEPAGE="https://www.seleniumhq.org" +# pypi tarball misses tests, github tarball misses generated files +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz + test? ( + https://github.com/SeleniumHQ/selenium/archive/${P}.tar.gz + -> ${P}.gh.tar.gz + )" + +KEYWORDS="amd64 arm ~arm64 ~ia64 ~ppc ppc64 ~sparc x86" +LICENSE="Apache-2.0" +SLOT="0" + +DOCS=( CHANGES README.rst ) + +QA_PREBUILT="/usr/lib*/python*/site-packages/${PN}/webdriver/firefox/*/x_ignore_nofocus.so" + +RDEPEND=" + dev-python/urllib3[${PYTHON_USEDEP}]" +BDEPEND=" + test? ( dev-python/pytest-mock[${PYTHON_USEDEP}] )" + +distutils_enable_tests pytest + +src_unpack() { + unpack "${P}.tar.gz" + if use test; then + cd "${S}" || die + ebegin "Unpacking tests from ${P}.gh.tar.gz" + tar -x -z -f "${DISTDIR}/${P}.gh.tar.gz" --strip-components 2 \ + "${PN}-${P}"/py/test + eend ${?} || die + fi +} + +python_test() { + pytest -vv test/unit || die "Tests fail with ${EPYTHON}" +} |