commit:     e9b58242f35b12f5556ff53c4ac0700eb83c4d6d
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Jun 25 03:35:53 2022 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Jun 25 05:11:35 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e9b58242

dev-python/pytest-mock: Bump to 3.8.1

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/pytest-mock/Manifest                 |  1 +
 dev-python/pytest-mock/pytest-mock-3.8.1.ebuild | 46 +++++++++++++++++++++++++
 2 files changed, 47 insertions(+)

diff --git a/dev-python/pytest-mock/Manifest b/dev-python/pytest-mock/Manifest
index c1a39aec7112..97f5e4ef533c 100644
--- a/dev-python/pytest-mock/Manifest
+++ b/dev-python/pytest-mock/Manifest
@@ -1 +1,2 @@
 DIST pytest-mock-3.7.0.tar.gz 29311 BLAKE2B 
27227b66008c70c4016c8e15d0021a67e84730a8b49c5664dc4f29e16d5f163df293269ab332707e44b7a0b182e15e20ab0ebaf4b9d923eb911083377972dad1
 SHA512 
6ba69e86bac8a430a9f1f1c615ad21f505b87848ac50fc551bc02f81306bf8769fd015615d96085d87d4c695c24b0686a95116721358687b48b64de5d0ae6901
+DIST pytest-mock-3.8.1.tar.gz 27671 BLAKE2B 
6bb4a3d752ae0f4e751cb50fd6018802bb7f3cee53429693161185ef369bad8addd8637d2526750fcf9ddbe9205da3d1d615efa19b1d58ae71603ca3902c67a6
 SHA512 
db8c0e2cbb7f8741569035a4e6ab9335ec0b03e05f0df07de0de8dad769974f96752c15d85c439da432623b51296b88970e3e29a212930e2bac33ed47d6055f3

diff --git a/dev-python/pytest-mock/pytest-mock-3.8.1.ebuild 
b/dev-python/pytest-mock/pytest-mock-3.8.1.ebuild
new file mode 100644
index 000000000000..ce9187b4e2e5
--- /dev/null
+++ b/dev-python/pytest-mock/pytest-mock-3.8.1.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
+}

Reply via email to