diff options
Diffstat (limited to 'dev-python/mock')
-rw-r--r-- | dev-python/mock/Manifest | 3 | ||||
-rw-r--r-- | dev-python/mock/mock-4.0.3-r1.ebuild | 40 | ||||
-rw-r--r-- | dev-python/mock/mock-4.0.3.ebuild | 4 |
3 files changed, 44 insertions, 3 deletions
diff --git a/dev-python/mock/Manifest b/dev-python/mock/Manifest index cc6cc7138c5d..c9d7c98e214a 100644 --- a/dev-python/mock/Manifest +++ b/dev-python/mock/Manifest @@ -1,4 +1,5 @@ AUX mock-4.0.3-py310.patch 2849 BLAKE2B a23047a6a872f7badb845388c3dcfb6c554824e524a094c09762a8749b3f6c292ddd58a1843cc540892a1a850f639af254a74abbfffb70deda4b756dca7dec9f SHA512 ad4448a85267aab11a35c761896779d66b45c2a38b6208226eeddcbbb7b28bac840f11fb9d69b72781383a82334a37b00dfac601fd9fe16f842da93c1b4ee3bb DIST mock-4.0.3.gh.tar.gz 80318 BLAKE2B bc0dc8b97129eaa2f0f9c89898157ea5de398f59f4e2ebc07318cf745b74d1f1bcc989774600ec88ce1956f9fe16f9464f101ea5df5cd23b3a58b432d19feb8a SHA512 adfdab253eb3bc1b6cb767c58ffa3a8a5c5f88da0f04ea6680e0d87da59177972d2d99bfe0a770ac2ed4f809ca6a090a9d0f789eea8f4365ef2c54f8e8792e89 -EBUILD mock-4.0.3.ebuild 1533 BLAKE2B 6696428fda382a15f2c2e63dc04c55b4e68071c37f2a7e647dc953292d5cc277bbd2319897b2262b7b0e8ac7bf522cb3c96962b633380041484079fbdde935e6 SHA512 416e3133bfba2855076199e62051507f22817143c72a49278c1fbdc2f2a9297075c8ea92de5c6720da8b40ecdb82da937366bdbb01a10b8471963c2539568e90 +EBUILD mock-4.0.3-r1.ebuild 875 BLAKE2B 51127615212ea62f8ed4a2c31d2f1857d2f49e6930d73289fe013f7f327ea236e42c406d3184a55a09dbb94c1eecda1976a410ccbc180ebef302a54370bfdb0e SHA512 c9ecf9fcf5d7af60aa1b5f3ef269dc78cb0f298c3e0a5861d58a3cec473a07d2ce8c8f5a0c1cb884ffd50c7f3f1b43c0851d6d2319190cbf100a8a929c164c63 +EBUILD mock-4.0.3.ebuild 1540 BLAKE2B d41fbeb74d3b151eb58373b20b6046239a75b0429bff8a83eb3bfc1ecba815768f5838f0d234e1864f251c2c17b4e67ccd378556129ea8c0d41457416c84a4e1 SHA512 69d6cec9a1cbca7df447f3597c08469548cb0d53344ffff0457dc3b59eb1d06fba8bc5a08a0b318930bc3eae82aa4023903b2652b099afe85d5c4b5d02ce3bc3 MISC metadata.xml 390 BLAKE2B ab0f000e11ee427d56fa28e307764a2c1864ce74bc679a491ab005a70d2bf8502d9a82b5d1941fcc268438880f8f950587aa090de9e611a520f89a49c78c0cbc SHA512 8456ad417374be30c038abce5a232d1075b8685e6432be93f49a74f327239354e14edfddf5e4a473264fb09bc0e4e6059489c1d0d651e8391ab0678d22987aeb diff --git a/dev-python/mock/mock-4.0.3-r1.ebuild b/dev-python/mock/mock-4.0.3-r1.ebuild new file mode 100644 index 000000000000..98086486bfc5 --- /dev/null +++ b/dev-python/mock/mock-4.0.3-r1.ebuild @@ -0,0 +1,40 @@ +# 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="Rolling backport of unittest.mock for all Pythons" +HOMEPAGE=" + https://github.com/testing-cabal/mock/ + https://pypi.org/project/mock/ +" +SRC_URI=" + https://github.com/testing-cabal/mock/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x64-solaris" + +RDEPEND=" + >=dev-python/six-1.9[${PYTHON_USEDEP}] +" +BDEPEND=${RDEPEND} + +PATCHES=( + "${FILESDIR}"/${P}-py310.patch +) + +distutils_enable_tests pytest + +python_install_all() { + local DOCS=( CHANGELOG.rst README.rst ) + + distutils-r1_python_install_all +} diff --git a/dev-python/mock/mock-4.0.3.ebuild b/dev-python/mock/mock-4.0.3.ebuild index be913d227c1f..522c268a1f72 100644 --- a/dev-python/mock/mock-4.0.3.ebuild +++ b/dev-python/mock/mock-4.0.3.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -13,7 +13,7 @@ SRC_URI="https://github.com/testing-cabal/mock/archive/${PV}.tar.gz -> ${P}.gh.t LICENSE="BSD" SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~x64-macos ~x64-solaris" +KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~x64-macos ~x64-solaris" RDEPEND=" >=dev-python/six-1.9[${PYTHON_USEDEP}]" |