diff options
author | Arthur Zamarin <arthurzam@gentoo.org> | 2022-01-28 20:33:32 +0200 |
---|---|---|
committer | Arthur Zamarin <arthurzam@gentoo.org> | 2022-01-28 20:38:42 +0200 |
commit | 80bbe3693a2e3eb7b0c6c216fc6dc2c44e4ea631 (patch) | |
tree | e0b0ec301bf1aaacda5bb92c27565535712aa60a /dev-python/pytest-mock | |
parent | dev-python/unidiff: add 0.7.2 (diff) | |
download | gentoo-80bbe3693a2e3eb7b0c6c216fc6dc2c44e4ea631.tar.gz gentoo-80bbe3693a2e3eb7b0c6c216fc6dc2c44e4ea631.tar.bz2 gentoo-80bbe3693a2e3eb7b0c6c216fc6dc2c44e4ea631.zip |
dev-python/pytest-mock: add 3.7.0
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'dev-python/pytest-mock')
-rw-r--r-- | dev-python/pytest-mock/Manifest | 1 | ||||
-rw-r--r-- | dev-python/pytest-mock/pytest-mock-3.7.0.ebuild | 36 |
2 files changed, 37 insertions, 0 deletions
diff --git a/dev-python/pytest-mock/Manifest b/dev-python/pytest-mock/Manifest index c05c153f9057..ca407a500dc0 100644 --- a/dev-python/pytest-mock/Manifest +++ b/dev-python/pytest-mock/Manifest @@ -1 +1,2 @@ DIST pytest-mock-3.6.1.tar.gz 29933 BLAKE2B 6c22d23f3a8e9b5ef26f990325f5a2c2897b60f61f84472716a1f984e72a8c38f6992e439ef581d7772e25a5fe9e76d190697d9c7bc8b5dcbf6375bead4b3dc3 SHA512 50a8ffbac1b20b1962558789b24d50c1e7d8d2e2706ee15a576eb5fd1b40d4523482dce7a1078d532b686ff8d38b6d769d356b04241528a0196e14acae0b6199 +DIST pytest-mock-3.7.0.tar.gz 29311 BLAKE2B 27227b66008c70c4016c8e15d0021a67e84730a8b49c5664dc4f29e16d5f163df293269ab332707e44b7a0b182e15e20ab0ebaf4b9d923eb911083377972dad1 SHA512 6ba69e86bac8a430a9f1f1c615ad21f505b87848ac50fc551bc02f81306bf8769fd015615d96085d87d4c695c24b0686a95116721358687b48b64de5d0ae6901 diff --git a/dev-python/pytest-mock/pytest-mock-3.7.0.ebuild b/dev-python/pytest-mock/pytest-mock-3.7.0.ebuild new file mode 100644 index 000000000000..bd52ca1d9ea7 --- /dev/null +++ b/dev-python/pytest-mock/pytest-mock-3.7.0.ebuild @@ -0,0 +1,36 @@ +# 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..10} pypy3 ) +inherit distutils-r1 + +DESCRIPTION="Thin-wrapper around the mock package for easier use with pytest" +HOMEPAGE="https://github.com/pytest-dev/pytest-mock/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 ~x64-macos" + +RDEPEND=">=dev-python/pytest-6[${PYTHON_USEDEP}]" +BDEPEND="dev-python/setuptools_scm[${PYTHON_USEDEP}]" + +distutils_enable_tests pytest + +src_prepare() { + sed -e 's/runpytest_subprocess(/&"-p","no:xprocess",/' -i tests/test_pytest_mock.py || die + distutils-r1_src_prepare +} + +python_test() { + if has_version dev-python/mock; then + local EPYTEST_DESELECT=( + tests/test_pytest_mock.py::test_standalone_mock + ) + fi + + epytest --assert=plain +} |