diff options
Diffstat (limited to 'dev-python/pytest-mock')
-rw-r--r-- | dev-python/pytest-mock/Manifest | 2 | ||||
-rw-r--r-- | dev-python/pytest-mock/pytest-mock-1.11.2.ebuild | 39 |
2 files changed, 41 insertions, 0 deletions
diff --git a/dev-python/pytest-mock/Manifest b/dev-python/pytest-mock/Manifest index a7cc6c64d78e..7af8963120ff 100644 --- a/dev-python/pytest-mock/Manifest +++ b/dev-python/pytest-mock/Manifest @@ -1,7 +1,9 @@ DIST pytest-mock-1.10.0.tar.gz 20754 BLAKE2B db60bfe6ee9d6d0a6ee4f0df7f5efa6ef05f5e2360945aa86ff6de02fc6a01f1e6715cbb61ced0c1e737c300965835fb08727b926852c5b71c0cc3d56c1171f1 SHA512 b8afba13da3e598b6493459298e395c0ecc06538733916659191bd5c5c22f40b0e296853ad940c16a6d492fcf46b2daf490ee589661d391e2c7cd1deb84da756 +DIST pytest-mock-1.11.2.tar.gz 22825 BLAKE2B d6843d1cb1afc0d5a242103ec4900d56418198b84fa037faf4b6841d7fbfd388273a819a26bfe051e6030690105e74211a27d2b864448598962b3e03788958fa SHA512 6dc927ce35001d088bddd9d79e024141b9e8163033b07af14b1f63330ef8b93dbf88649702f8fcc4f6ad314212fa5cbd39486b539811ec918450b3f7a716f96c DIST pytest-mock-1.6.0.tar.gz 17780 BLAKE2B 4fbc0cbd951668eb2ce427496c54e958591fe368bd42544eb1d0379adcb3d0e10b223ab044956e4003aac88665b3132dcb9d167442d6d85a5be79edea36881ca SHA512 c3b897be9156d57d7012e95b620c543500b849d7076224e3328d3783311210c57141dfb82c01bb98e5e419125dce0f68f6631bd610f4909f5ac1798458a7949f DIST pytest-mock-1.6.3.tar.gz 18482 BLAKE2B 1c0d366e5afd1b247ff454716b6d96d9d68846adfff81adc0ea079a72d3e7710fd9385122723cfee69965588235ec2deb1e0b52328ace5c967652c93b404cea3 SHA512 6857f373728d3f2c6b152d4f89da3590e2e74795695dc9f4f3704a4e0250e49d705ce0de4121a801ac35c83217678a95a5023338124293ca74db406941f5072a EBUILD pytest-mock-1.10.0.ebuild 1053 BLAKE2B 557904303bf9bd18f56a6dea0e3f9094210f11a5a8d55e9ee751d547812a89160fbded658aa8a9695742821322ec050f13e74eda728c6afa6835083cc31ed31b SHA512 105f9f1a88237c927715276d8720af98a11b52c26adabb2565ac09d9da639cad1aafe2ddc2251b1ca5ee7215d570af71d479de51be72f9a6be3037b71710da75 +EBUILD pytest-mock-1.11.2.ebuild 1310 BLAKE2B bcac1ef3be8f944a61d18e222a4f39e402104159a2d92e90667f2f744fd32ef44c8615b941e56979b1def3ae80df58e570784ba877683903c600e82312e05a41 SHA512 6e6b28103c8283408261ed1b252fe4cfdae5951bd0909fed65ade3e0f76104f34eb33567bd9a1d42763c7689928ab40393d8c2180fb33b93c74f15c602049f09 EBUILD pytest-mock-1.6.0.ebuild 1082 BLAKE2B 3bbb3cde15139fa3c9134250de2419623161f53a69689b64dfab6f81f73c4c1afa6001c0f8ba119376ebae6881f16c4f9a117609e0d6794aaf30cb4efc4be553 SHA512 c71cfc5c6c35799529fa21e9f0341dc5178bea61a7f6975a779c677dec3dad3e94540236839c5547a5ca179cb0cb16121cc3d0c17f7409c1812ef0312fe3c551 EBUILD pytest-mock-1.6.3.ebuild 1053 BLAKE2B 4525429f621c5d06d9ec07ecfb14b429ac52fa7861168024d0d832449aa184ef04a5c331157cf10befe30c5902299741b2019326d2f197d080a6313388a42901 SHA512 ba49f51d47920280f96a9697c0ec81f14133019fa50b0bb43985a69908d56d6fc6ed7f1c12ff8e4c898de666f1a673216da802834f48420b0af14d77d9631a42 MISC metadata.xml 433 BLAKE2B 78d844dea9620760c0766eda59e09f93248fba58778f26fb4dd53e864ece455ede7299db90bec0fe11fdf64b762e2c660c260ce10e3758bb8e25024b1bf2877f SHA512 16324c7a2ce4e3e7261b9be389d646ba8e797719b6dd6782fd66311aefa262e338bac99c09a9399d55b362b941cecfc8039fa14e53b79e214359ba6d294c9529 diff --git a/dev-python/pytest-mock/pytest-mock-1.11.2.ebuild b/dev-python/pytest-mock/pytest-mock-1.11.2.ebuild new file mode 100644 index 000000000000..9abdcee85b10 --- /dev/null +++ b/dev-python/pytest-mock/pytest-mock-1.11.2.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=( python2_7 python3_{5,6,7} pypy pypy3 ) + +inherit distutils-r1 + +DESCRIPTION="Thin-wrapper around the mock package for easier use with py.test" +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 ~ia64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="" + +RDEPEND="dev-python/pytest[${PYTHON_USEDEP}] + $(python_gen_cond_dep '>=dev-python/mock-2[${PYTHON_USEDEP}]' -2)" +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}] + dev-python/setuptools_scm[${PYTHON_USEDEP}]" + +src_prepare() { + if has_version dev-python/mock; then + # test fails when standalone mock is installed + sed -e 's|^\(def \)\(test_standalone_mock(\)|\1_\2|' -i tests/test_pytest_mock.py || die + fi + sed -e 's|^\( def \)\(test_failure_message_with_no_name(\)|\1_\2|' \ + -e 's|^\( def \)\(test_failure_message_with_name(\)|\1_\2|' \ + -e 's|^\(def \)\(test_detailed_introspection(\)|\1_\2|' \ + -i tests/test_pytest_mock.py || die + distutils-r1_src_prepare +} + +python_test() { + local -x PYTHONPATH=${PWD}${PYTHONPATH:+:}${PYTHONPATH} + py.test -vv tests/test_pytest_mock.py || die "Tests fail with ${EPYTHON}" +} |