From 4644ff18014566d65fdbda87b8fafd6f76b24a99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Mon, 5 Jul 2021 13:10:20 +0200 Subject: dev-python/google-api-python-client: Eliminate unittest2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- .../google-api-python-client/google-api-python-client-2.8.0.ebuild | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'dev-python/google-api-python-client/google-api-python-client-2.8.0.ebuild') diff --git a/dev-python/google-api-python-client/google-api-python-client-2.8.0.ebuild b/dev-python/google-api-python-client/google-api-python-client-2.8.0.ebuild index 69b970850c57..e52f1f75567e 100644 --- a/dev-python/google-api-python-client/google-api-python-client-2.8.0.ebuild +++ b/dev-python/google-api-python-client/google-api-python-client-2.8.0.ebuild @@ -32,11 +32,16 @@ BDEPEND=" dev-python/oauth2client[${PYTHON_USEDEP}] dev-python/pandas[${PYTHON_USEDEP}] dev-python/parameterized[${PYTHON_USEDEP}] - dev-python/unittest2[${PYTHON_USEDEP}] )" distutils_enable_tests --install pytest +src_prepare() { + find tests -name '*.py' -exec \ + sed -i -e 's:unittest2 as ::' {} + || die + distutils-r1_src_prepare +} + python_test() { local deselect=( # require Internet access (and credentials) -- cgit v1.2.3