commit: c29bbd37d9ef84c0f9be4ca30912be5973554322
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Jul 5 11:05:29 2021 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Jul 5 11:05:29 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c29bbd37
dev-python/deprecation: Eliminate unittest2
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/deprecation/deprecation-2.1.0.ebuild | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/dev-python/deprecation/deprecation-2.1.0.ebuild
b/dev-python/deprecation/deprecation-2.1.0.ebuild
index 435613b7860..beaa31f1df7 100644
--- a/dev-python/deprecation/deprecation-2.1.0.ebuild
+++ b/dev-python/deprecation/deprecation-2.1.0.ebuild
@@ -16,11 +16,11 @@ SLOT="0"
KEYWORDS="amd64 arm ~arm64 ~hppa ~ia64 ppc ppc64 sparc x86"
RDEPEND="dev-python/packaging[${PYTHON_USEDEP}]"
-BDEPEND="
- test? (
- dev-python/unittest2[${PYTHON_USEDEP}]
- )
-"
distutils_enable_sphinx docs
distutils_enable_tests unittest
+
+src_prepare() {
+ sed -i -e 's:unittest2:unittest:' tests/test_deprecation.py || die
+ distutils-r1_src_prepare
+}