summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2018-05-16 09:50:15 +0200
committerMichał Górny <mgorny@gentoo.org>2018-05-16 09:50:19 +0200
commit3563789c6963be00e0d35394fafb09e25cf261e4 (patch)
treeed89d4a9d9c247a6c60bd196a774980353184d23 /virtual
parentnet-misc/zerotier: bump version to 1.2.8 (diff)
downloadgentoo-3563789c6963be00e0d35394fafb09e25cf261e4.tar.gz
gentoo-3563789c6963be00e0d35394fafb09e25cf261e4.tar.bz2
gentoo-3563789c6963be00e0d35394fafb09e25cf261e4.zip
virtual/python-unittest-mock: Add virtual for unittest.mock
Diffstat (limited to 'virtual')
-rw-r--r--virtual/python-unittest-mock/metadata.xml8
-rw-r--r--virtual/python-unittest-mock/python-unittest-mock-1.ebuild16
2 files changed, 24 insertions, 0 deletions
diff --git a/virtual/python-unittest-mock/metadata.xml b/virtual/python-unittest-mock/metadata.xml
new file mode 100644
index 000000000000..7f4f33c6dbc9
--- /dev/null
+++ b/virtual/python-unittest-mock/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>python@gentoo.org</email>
+ <name>Python</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/virtual/python-unittest-mock/python-unittest-mock-1.ebuild b/virtual/python-unittest-mock/python-unittest-mock-1.ebuild
new file mode 100644
index 000000000000..c64bda9d189f
--- /dev/null
+++ b/virtual/python-unittest-mock/python-unittest-mock-1.ebuild
@@ -0,0 +1,16 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy pypy3 )
+
+inherit python-r1
+
+DESCRIPTION="A virtual for unittest.mock with mock fallback"
+SLOT="0"
+KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="${PYTHON_DEPS}
+ $(python_gen_cond_dep 'dev-python/mock[${PYTHON_USEDEP}]' -2)"