diff options
Diffstat (limited to 'net-analyzer/wapiti/wapiti-3.0.4.ebuild')
-rw-r--r-- | net-analyzer/wapiti/wapiti-3.0.4.ebuild | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/net-analyzer/wapiti/wapiti-3.0.4.ebuild b/net-analyzer/wapiti/wapiti-3.0.4.ebuild index 37fdae6f81ab..4363743763ef 100644 --- a/net-analyzer/wapiti/wapiti-3.0.4.ebuild +++ b/net-analyzer/wapiti/wapiti-3.0.4.ebuild @@ -28,9 +28,16 @@ RDEPEND="dev-python/beautifulsoup:4[${PYTHON_USEDEP}] kerberos? ( dev-python/requests-kerberos[${PYTHON_USEDEP}] ) ntlm? ( dev-python/requests-ntlm[${PYTHON_USEDEP}] )" +distutils_enable_tests --install pytest +BDEPEND+=" test? ( dev-python/responses[${PYTHON_USEDEP}] )" +# Many tests require execution of local test php server +RESTRICT="test" + S=${WORKDIR}/${MY_P} python_prepare_all() { - sed -e 's/"pytest-runner"//' -i setup.py || die + sed -e 's/"pytest-runner"//' \ + -e "/find_packages/s/()/(exclude=['tests*'])/" \ + -i setup.py || die distutils-r1_python_prepare_all } |