dev-python/unicodecsv: Avoid dep on unittest2
authorMichał Górny <mgorny@gentoo.org>
Fri, 1 May 2020 12:10:52 +0000 (14:10 +0200)
committerMichał Górny <mgorny@gentoo.org>
Fri, 1 May 2020 12:53:54 +0000 (14:53 +0200)
Closes: https://bugs.gentoo.org/720254
Signed-off-by: Michał Górny <mgorny@gentoo.org>
dev-python/unicodecsv/unicodecsv-0.14.1-r1.ebuild

index f679c0c8c603195f6a4fd5ac1f5f2932d75497ba..579d1b8273ce971d9a06ece96f1c7847b3c58502 100644 (file)
@@ -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
+}