summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Ammerlaan <andrewammerlaan@riseup.net>2020-08-17 18:50:31 +0200
committerJoonas Niilola <juippis@gentoo.org>2020-09-15 11:09:19 +0300
commitd0e9ec302e67bfdcb4965c2b46eeadf7a8aea401 (patch)
tree2e33effdb9a59b6a1725f5dc4a503ace133eda11
parentdev-python/pyvirtualdisplay: Python wrapper for Xvfb, Xephyr and Xvnc (diff)
downloadgentoo-d0e9ec302e67bfdcb4965c2b46eeadf7a8aea401.tar.gz
gentoo-d0e9ec302e67bfdcb4965c2b46eeadf7a8aea401.tar.bz2
gentoo-d0e9ec302e67bfdcb4965c2b46eeadf7a8aea401.zip
dev-python/pytest-xvfb: A pytest plugin to run Xvfb for tests
Package-Manager: Portage-3.0.2, Repoman-2.3.23 Signed-off-by: Andrew Ammerlaan <andrewammerlaan@riseup.net> Signed-off-by: Joonas Niilola <juippis@gentoo.org>
-rw-r--r--dev-python/pytest-xvfb/Manifest1
-rw-r--r--dev-python/pytest-xvfb/metadata.xml12
-rw-r--r--dev-python/pytest-xvfb/pytest-xvfb-2.0.0.ebuild30
3 files changed, 43 insertions, 0 deletions
diff --git a/dev-python/pytest-xvfb/Manifest b/dev-python/pytest-xvfb/Manifest
new file mode 100644
index 00000000000..2132937334b
--- /dev/null
+++ b/dev-python/pytest-xvfb/Manifest
@@ -0,0 +1 @@
+DIST pytest-xvfb-2.0.0.tar.gz 6855 BLAKE2B 338802ccbf5fc0c9ab3fccd7c172b31867cc86869dfc50dbb30daf396ecd9865e71c6486cc96c2485e2d5b6195dc2eff83a033864f88e1b2c64a3937b6b48c84 SHA512 42c2119b2c529a45b5de9f8ac2781306cfb9f00c1d0e0e9045ed40ccb7260cb6f400683802ab845ce2481dcadfcef007c8417a481e9c04f14ee1bdc68244d391
diff --git a/dev-python/pytest-xvfb/metadata.xml b/dev-python/pytest-xvfb/metadata.xml
new file mode 100644
index 00000000000..d22e99d7357
--- /dev/null
+++ b/dev-python/pytest-xvfb/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>andrewammerlaan@riseup.net</email>
+ <name>Andrew Ammerlaan</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-python/pytest-xvfb/pytest-xvfb-2.0.0.ebuild b/dev-python/pytest-xvfb/pytest-xvfb-2.0.0.ebuild
new file mode 100644
index 00000000000..f6108d71158
--- /dev/null
+++ b/dev-python/pytest-xvfb/pytest-xvfb-2.0.0.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{7,8} )
+DISTUTILS_USE_SETUPTOOLS=rdepend
+
+inherit distutils-r1
+
+DESCRIPTION="A pytest plugin to run Xvfb for tests"
+HOMEPAGE="https://pypi.org/project/pytest-xvfb/"
+SRC_URI="https://github.com/The-Compiler/pytest-xvfb/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+DEPEND="
+ >=dev-python/pytest-2.8.1[${PYTHON_USEDEP}]
+ >=dev-python/pyvirtualdisplay-1.3[${PYTHON_USEDEP}]
+ x11-base/xorg-server[xvfb]
+"
+
+distutils_enable_tests pytest
+
+python_test() {
+ distutils_install_for_testing
+ pytest -vv || die "Tests failed with ${EPYTHON}"
+}