summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2020-05-01 14:10:52 +0200
committerMichał Górny <mgorny@gentoo.org>2020-05-01 14:53:54 +0200
commit60354475e4b8c22ba4bded5cab4ffbf64a60b175 (patch)
tree86efffcfcf5ef6def69eb7e2f118cd718fcf45e0 /dev-python/unicodecsv
parentgnome-base/gnome-desktop: bump to 3.34.6 (diff)
downloadgentoo-60354475e4b8c22ba4bded5cab4ffbf64a60b175.tar.gz
gentoo-60354475e4b8c22ba4bded5cab4ffbf64a60b175.tar.bz2
gentoo-60354475e4b8c22ba4bded5cab4ffbf64a60b175.zip
dev-python/unicodecsv: Avoid dep on unittest2
Closes: https://bugs.gentoo.org/720254 Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/unicodecsv')
-rw-r--r--dev-python/unicodecsv/unicodecsv-0.14.1-r1.ebuild6
1 files changed, 6 insertions, 0 deletions
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
+}