summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2018-07-21 12:00:02 +0200
committerMichał Górny <mgorny@gentoo.org>2018-07-21 12:14:30 +0200
commit79dc2131ef3c0b9797f26dc55579281e4c9bb9a9 (patch)
treec0ed586cb27dec4dd318eefae2f1f99473dd8769 /dev-python
parentdev-python/docutils-glep: Enable py3.7 (diff)
downloadgentoo-79dc2131ef3c0b9797f26dc55579281e4c9bb9a9.tar.gz
gentoo-79dc2131ef3c0b9797f26dc55579281e4c9bb9a9.tar.bz2
gentoo-79dc2131ef3c0b9797f26dc55579281e4c9bb9a9.zip
dev-python/pytest-mock: Use python_gen_cond_dep
Diffstat (limited to 'dev-python')
-rw-r--r--dev-python/pytest-mock/pytest-mock-1.6.3.ebuild9
1 files changed, 2 insertions, 7 deletions
diff --git a/dev-python/pytest-mock/pytest-mock-1.6.3.ebuild b/dev-python/pytest-mock/pytest-mock-1.6.3.ebuild
index 4d4ced48dfbc..958c9a4a9d01 100644
--- a/dev-python/pytest-mock/pytest-mock-1.6.3.ebuild
+++ b/dev-python/pytest-mock/pytest-mock-1.6.3.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
@@ -16,12 +16,7 @@ KEYWORDS="~amd64 ~arm64 ~x86"
IUSE=""
RDEPEND="dev-python/pytest[${PYTHON_USEDEP}]
- python_targets_python2_7? (
- >=dev-python/mock-2[python_targets_python2_7]
- )
- python_targets_pypy? (
- >=dev-python/mock-2[python_targets_pypy]
- )"
+ $(python_gen_cond_dep '>=dev-python/mock-2[${PYTHON_USEDEP}]' -2)"
DEPEND="${RDEPEND}
dev-python/setuptools[${PYTHON_USEDEP}]
dev-python/setuptools_scm[${PYTHON_USEDEP}]"