summaryrefslogtreecommitdiff
path: root/dev-python/pytest-subprocess/pytest-subprocess-1.5.2.ebuild
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2024-07-24 18:35:08 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2024-07-24 18:35:08 +0000
commitbaf8c6e80dc6cba501563da7a4b310134a76a65e (patch)
tree84f4ed9b92ddad768436305a6732d235e5b40ee0 /dev-python/pytest-subprocess/pytest-subprocess-1.5.2.ebuild
parent167d7fd4abfaf9ec8eab3063904e4b30c161dccd (diff)
downloadbaldeagleos-repo-baf8c6e80dc6cba501563da7a4b310134a76a65e.tar.gz
baldeagleos-repo-baf8c6e80dc6cba501563da7a4b310134a76a65e.tar.xz
baldeagleos-repo-baf8c6e80dc6cba501563da7a4b310134a76a65e.zip
Adding metadata
Diffstat (limited to 'dev-python/pytest-subprocess/pytest-subprocess-1.5.2.ebuild')
-rw-r--r--dev-python/pytest-subprocess/pytest-subprocess-1.5.2.ebuild44
1 files changed, 44 insertions, 0 deletions
diff --git a/dev-python/pytest-subprocess/pytest-subprocess-1.5.2.ebuild b/dev-python/pytest-subprocess/pytest-subprocess-1.5.2.ebuild
new file mode 100644
index 000000000000..4f4e29ad9e31
--- /dev/null
+++ b/dev-python/pytest-subprocess/pytest-subprocess-1.5.2.ebuild
@@ -0,0 +1,44 @@
+# Copyright 2023-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{8,9,10,11,12} pypy3 )
+
+inherit distutils-r1
+
+DESCRIPTION="A plugin to fake subprocess for pytest"
+HOMEPAGE="
+ https://github.com/aklajnert/pytest-subprocess/
+ https://pypi.org/project/pytest-subprocess/
+"
+SRC_URI="
+ https://github.com/aklajnert/pytest-subprocess/archive/${PV}.tar.gz
+ -> ${P}.gh.tar.gz
+"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
+
+RDEPEND="
+ >=dev-python/pytest-4.0.0[${PYTHON_USEDEP}]
+"
+BDEPEND="
+ test? (
+ dev-python/anyio[${PYTHON_USEDEP}]
+ >=dev-python/docutils-0.12[${PYTHON_USEDEP}]
+ >=dev-python/pygments-2.0[${PYTHON_USEDEP}]
+ >=dev-python/pytest-asyncio-0.15.1[${PYTHON_USEDEP}]
+ dev-python/pytest-rerunfailures[${PYTHON_USEDEP}]
+ )
+"
+
+distutils_enable_tests pytest
+
+python_test() {
+ local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+ local -x PYTEST_PLUGINS=pytest_subprocess.fixtures,pytest_asyncio.plugin
+ epytest -p rerunfailures
+}