commit: 75f046be742f40bb4425cfb20f7af06e0f8bbd73 Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org> AuthorDate: Mon Dec 6 20:01:40 2021 +0000 Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org> CommitDate: Mon Dec 6 20:20:01 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=75f046be
net-misc/yt-dlp: make pip check happier mutagen and websockets are optional, and we use pycryptodome rather than domex on Gentoo. Closes: https://bugs.gentoo.org/828466 Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org> .../yt-dlp/{yt-dlp-2021.12.1.ebuild => yt-dlp-2021.12.1-r1.ebuild} | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/net-misc/yt-dlp/yt-dlp-2021.12.1.ebuild b/net-misc/yt-dlp/yt-dlp-2021.12.1-r1.ebuild similarity index 89% rename from net-misc/yt-dlp/yt-dlp-2021.12.1.ebuild rename to net-misc/yt-dlp/yt-dlp-2021.12.1-r1.ebuild index 79ffad33d94f..89fd029d9b11 100644 --- a/net-misc/yt-dlp/yt-dlp-2021.12.1.ebuild +++ b/net-misc/yt-dlp/yt-dlp-2021.12.1-r1.ebuild @@ -20,6 +20,13 @@ RDEPEND=" distutils_enable_tests pytest +python_prepare_all() { + distutils-r1_python_prepare_all + + # adjust requires for pycryptodome and optional dependencies (bug #828466) + sed -ri "/'pycryptodomex'/s/x//;s/'(mutagen|websockets)',?//g" setup.py || die +} + python_test() { epytest -m 'not download' -p no:markdown }