dev-python/setuptools_scm: Disarm test_pip_download
authorMichał Górny <mgorny@gentoo.org>
Wed, 11 Jul 2018 06:28:57 +0000 (08:28 +0200)
committerMichał Górny <mgorny@gentoo.org>
Wed, 11 Jul 2018 06:51:42 +0000 (08:51 +0200)
Closes: https://bugs.gentoo.org/658280

dev-python/setuptools_scm/setuptools_scm-2.1.0.ebuild

index 0367b5e4f012376cd51f8f8629dc22151d96fe0f..a8abcb4338fe7bb3e1d70c671ec5200c4a5a1464 100644 (file)
@@ -22,6 +22,13 @@ DEPEND="
        mercurial? ( dev-vcs/mercurial )
        test? ( dev-python/pytest[${PYTHON_USEDEP}] )"
 
+python_prepare_all() {
+       # network access
+       sed -i -e 's:test_pip_download:_&:' testing/test_regressions.py || die
+
+       distutils-r1_python_prepare_all
+}
+
 python_test() {
        distutils_install_for_testing
        py.test -v -v -x -k testing/test_basic_api.py || die "tests failed under ${EPYTHON}"