dev-python/pyclip: Disable tests

Running the tests is a bad idea because the clipboard isn't always
available when building.

Signed-off-by: Ryan Fox <flewkey@2a03.party>
Closes: https://bugs.gentoo.org/847169
This commit is contained in:
Ryan Fox
2022-05-26 14:04:46 -07:00
parent d75e81c26b
commit 6deb9f488f
3 changed files with 6 additions and 33 deletions

View File

@@ -20,20 +20,11 @@ DESCRIPTION="Python clipboard module"
HOMEPAGE="https://pypi.org/project/pyclip/"
LICENSE="Apache-2.0"
SLOT="0"
IUSE="test"
RESTRICT="!test? ( test )"
RESTRICT="test"
DOCS="${S}/docs/README.md"
DEPEND="
test? ( dev-python/pytest[${PYTHON_USEDEP}] )
"
DEPEND=""
RDEPEND="
x11-misc/xclip
"
BDEPEND=""
python_test() {
for unittest in "${S}/tests/"*".py"; do
"${EPYTHON}" "${unittest}" || die "Tests failed"
done
}

View File

@@ -20,21 +20,12 @@ DESCRIPTION="Python clipboard module"
HOMEPAGE="https://pypi.org/project/pyclip/"
LICENSE="Apache-2.0"
SLOT="0"
IUSE="test"
RESTRICT="!test? ( test )"
RESTRICT="test"
DOCS="${S}/docs/README.md"
DEPEND="
test? ( dev-python/pytest[${PYTHON_USEDEP}] )
"
DEPEND=""
RDEPEND="
gui-apps/wl-clipboard
x11-misc/xclip
"
BDEPEND=""
python_test() {
for unittest in "${S}/tests/"*".py"; do
"${EPYTHON}" "${unittest}" || die "Tests failed"
done
}

View File

@@ -20,21 +20,12 @@ DESCRIPTION="Python clipboard module"
HOMEPAGE="https://pypi.org/project/pyclip/"
LICENSE="Apache-2.0"
SLOT="0"
IUSE="test"
RESTRICT="!test? ( test )"
RESTRICT="test"
DOCS="${S}/docs/README.md"
DEPEND="
test? ( dev-python/pytest[${PYTHON_USEDEP}] )
"
DEPEND=""
RDEPEND="
gui-apps/wl-clipboard
x11-misc/xclip
"
BDEPEND=""
python_test() {
for unittest in "${S}/tests/"*".py"; do
"${EPYTHON}" "${unittest}" || die "Tests failed"
done
}