From 60354475e4b8c22ba4bded5cab4ffbf64a60b175 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C5=82=20G=C3=B3rny?= Date: Fri, 1 May 2020 14:10:52 +0200 Subject: [PATCH] dev-python/unicodecsv: Avoid dep on unittest2 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Closes: https://bugs.gentoo.org/720254 Signed-off-by: Michał Górny --- dev-python/unicodecsv/unicodecsv-0.14.1-r1.ebuild | 6 ++++++ 1 file changed, 6 insertions(+) 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 +} -- 2.26.2