summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2022-09-28 20:02:37 +0200
committerMichał Górny <mgorny@gentoo.org>2022-09-28 20:32:55 +0200
commit03e7d18137a3a99c40cce23e7364eea6609bd606 (patch)
tree7ddd889a5bdb71ba7c8f176b263f5d255715f9cb /dev-python/pytest-mock
parentdev-python/pyscard: Bump to 2.0.5 (diff)
downloadgentoo-03e7d18137a3a99c40cce23e7364eea6609bd606.tar.gz
gentoo-03e7d18137a3a99c40cce23e7364eea6609bd606.tar.bz2
gentoo-03e7d18137a3a99c40cce23e7364eea6609bd606.zip
dev-python/pytest-mock: Bump to 3.9.0
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/pytest-mock')
-rw-r--r--dev-python/pytest-mock/Manifest1
-rw-r--r--dev-python/pytest-mock/pytest-mock-3.9.0.ebuild46
2 files changed, 47 insertions, 0 deletions
diff --git a/dev-python/pytest-mock/Manifest b/dev-python/pytest-mock/Manifest
index 58f3d5fbc4a7..4df2285628e4 100644
--- a/dev-python/pytest-mock/Manifest
+++ b/dev-python/pytest-mock/Manifest
@@ -1 +1,2 @@
DIST pytest-mock-3.8.2.tar.gz 27734 BLAKE2B feaa92ba63626d7510008c41491bd0ab649b2a0cb55c888a472a5f6100a18d8b4a232532b6b3a860483bfd1676fc1216ca368e215b8f11fc6211eeef62f5743f SHA512 039342de6a22921ebac3f54a1f217a7a5d4cf9833ce4b4bee0a18ba5409d46211cd2d9ff9620a1576560d32f5e5799483e6686e3b58d32123f41dcd7a862154b
+DIST pytest-mock-3.9.0.tar.gz 27883 BLAKE2B d1cf4599bdc3fa21df83874c26751791f9ec891184baa2a304a8d4e48e5a03194718afb80e9019f914150ef22c1b3a787ac17cfadf10deae5584b8e39e32e376 SHA512 ed918574852ac70d863589d976fd65ac57c61ee1fa072651b93ee58f2d1154cef6c0ae1c2cba822bb1c6a2bddd6442b49e256652e2bd55fd3b1bed73017ff7b6
diff --git a/dev-python/pytest-mock/pytest-mock-3.9.0.ebuild b/dev-python/pytest-mock/pytest-mock-3.9.0.ebuild
new file mode 100644
index 000000000000..ce9187b4e2e5
--- /dev/null
+++ b/dev-python/pytest-mock/pytest-mock-3.9.0.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{8..11} pypy3 )
+
+inherit distutils-r1
+
+DESCRIPTION="Thin-wrapper around the mock package for easier use with pytest"
+HOMEPAGE="
+ https://github.com/pytest-dev/pytest-mock/
+ https://pypi.org/project/pytest-mock/
+"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos"
+
+RDEPEND="
+ >=dev-python/pytest-6[${PYTHON_USEDEP}]
+"
+BDEPEND="
+ dev-python/setuptools_scm[${PYTHON_USEDEP}]
+ test? (
+ dev-python/pytest-asyncio[${PYTHON_USEDEP}]
+ )
+"
+
+distutils_enable_tests pytest
+
+python_test() {
+ local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+ local -x PYTEST_PLUGINS=pytest_mock,pytest_asyncio.plugin
+ local EPYTEST_DESELECT=()
+
+ if has_version dev-python/mock; then
+ EPYTEST_DESELECT+=(
+ tests/test_pytest_mock.py::test_standalone_mock
+ )
+ fi
+
+ epytest --assert=plain
+}