From: Michał Górny Date: Fri, 1 May 2020 12:10:52 +0000 (+0200) Subject: dev-python/unicodecsv: Avoid dep on unittest2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=60354475e4b8c22ba4bded5cab4ffbf64a60b175;p=gentoo.git dev-python/unicodecsv: Avoid dep on unittest2 Closes: https://bugs.gentoo.org/720254 Signed-off-by: Michał Górny --- diff --git a/dev-python/unicodecsv/unicodecsv-0.14.1-r1.ebuild b/dev-python/unicodecsv/unicodecsv-0.14.1-r1.ebuild index f679c0c8c603..579d1b8273ce 100644 --- a/dev-python/unicodecsv/unicodecsv-0.14.1-r1.ebuild +++ b/dev-python/unicodecsv/unicodecsv-0.14.1-r1.ebuild @@ -16,3 +16,9 @@ SLOT="0" KEYWORDS="amd64 arm64 hppa ~ppc ~ppc64 sparc x86" distutils_enable_tests unittest + +src_prepare() { + # un-depend on unittest2 + sed -i -e 's:unittest2 as ::' unicodecsv/test.py || die + distutils-r1_src_prepare +}