commit: 8d9fd841e48b8fceca9efd6a13bd1e797219b228 Author: Louis Sautier <sbraz <AT> gentoo <DOT> org> AuthorDate: Sun Sep 20 19:15:01 2020 +0000 Commit: Louis Sautier <sbraz <AT> gentoo <DOT> org> CommitDate: Sun Sep 20 19:16:58 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8d9fd841
dev-python/python-dotenv: make sure tests find "dotenv" in PATH Closes: https://bugs.gentoo.org/743784 Package-Manager: Portage-3.0.7, Repoman-3.0.1 Signed-off-by: Louis Sautier <sbraz <AT> gentoo.org> dev-python/python-dotenv/python-dotenv-0.14.0.ebuild | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dev-python/python-dotenv/python-dotenv-0.14.0.ebuild b/dev-python/python-dotenv/python-dotenv-0.14.0.ebuild index f73be046446..facf646f4b7 100644 --- a/dev-python/python-dotenv/python-dotenv-0.14.0.ebuild +++ b/dev-python/python-dotenv/python-dotenv-0.14.0.ebuild @@ -27,3 +27,10 @@ DEPEND="test? ( DOCS=( CHANGELOG.md README.md ) distutils_enable_tests pytest + +python_test() { + # Tests call the "dotenv" command which needs to be in PATH + # https://bugs.gentoo.org/743784 + distutils_install_for_testing + pytest -vv || die "Tests fail with ${EPYTHON}" +}