diff --git a/net-misc/yt-dlp/yt-dlp-2021.12.1-r1.ebuild b/net-misc/yt-dlp/yt-dlp-2021.12.1-r1.ebuild index 0d44057812150..f6633c012f813 100644 --- a/net-misc/yt-dlp/yt-dlp-2021.12.1-r1.ebuild +++ b/net-misc/yt-dlp/yt-dlp-2021.12.1-r1.ebuild @@ -24,7 +24,9 @@ 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 + sed -ri setup.py \ + -e "s/'(pycryptodome)x'/'\1'/" \ + -e "s/'(mutagen|websockets)',?//g" || die } python_test() {