commit:     278a98890d1a1e600287719b9b13871d9bbeb4e2
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Tue Nov 14 23:50:20 2023 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Tue Nov 14 23:52:26 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=278a9889

net-misc/yt-dlp: make pip check happier

None of these are actually required and are more for obscure
options.

fwiw add optdepend for secretstorage but requests/urllib3 not
really worth it (and typicallly installed either way).

Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 net-misc/yt-dlp/yt-dlp-2023.11.14.ebuild | 3 ++-
 net-misc/yt-dlp/yt-dlp-9999.ebuild       | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/net-misc/yt-dlp/yt-dlp-2023.11.14.ebuild 
b/net-misc/yt-dlp/yt-dlp-2023.11.14.ebuild
index 2048994016f1..3a877d8e222b 100644
--- a/net-misc/yt-dlp/yt-dlp-2023.11.14.ebuild
+++ b/net-misc/yt-dlp/yt-dlp-2023.11.14.ebuild
@@ -29,7 +29,7 @@ src_prepare() {
        # adjust requires for pycryptodome and optional dependencies (bug 
#828466)
        sed -ri requirements.txt \
                -e "s/^(pycryptodome)x/\1/" \
-               -e "/^(brotli.*|certifi|mutagen|websockets)/d" || die
+               -e 
"/^(brotli.*|certifi|mutagen|requests|secretstorage|urllib3|websockets)/d" || 
die
 }
 
 python_test() {
@@ -62,6 +62,7 @@ pkg_postinst() {
        optfeature "various features (merging tracks, streamed content)" 
media-video/ffmpeg
        has_version media-video/atomicparsley || # allow fallback but don't 
advertise
                optfeature "embedding metadata thumbnails in MP4/M4A files" 
media-libs/mutagen
+       optfeature "decrypting cookies from Chromium-based browsers" 
dev-python/secretstorage
 
        if [[ ! ${REPLACING_VERSIONS} ]]; then
                elog 'A wrapper using "yt-dlp --compat-options youtube-dl" was 
installed'

diff --git a/net-misc/yt-dlp/yt-dlp-9999.ebuild 
b/net-misc/yt-dlp/yt-dlp-9999.ebuild
index 0b60946059b2..ce8b522bb027 100644
--- a/net-misc/yt-dlp/yt-dlp-9999.ebuild
+++ b/net-misc/yt-dlp/yt-dlp-9999.ebuild
@@ -28,7 +28,7 @@ src_prepare() {
        # adjust requires for pycryptodome and optional dependencies (bug 
#828466)
        sed -ri requirements.txt \
                -e "s/^(pycryptodome)x/\1/" \
-               -e "/^(brotli.*|certifi|mutagen|websockets)/d" || die
+               -e 
"/^(brotli.*|certifi|mutagen|requests|secretstorage|urllib3|websockets)/d" || 
die
 }
 
 python_compile() {
@@ -69,6 +69,7 @@ pkg_postinst() {
        optfeature "various features (merging tracks, streamed content)" 
media-video/ffmpeg
        has_version media-video/atomicparsley || # allow fallback but don't 
advertise
                optfeature "embedding metadata thumbnails in MP4/M4A files" 
media-libs/mutagen
+       optfeature "decrypting cookies from Chromium-based browsers" 
dev-python/secretstorage
 
        if [[ ! ${REPLACING_VERSIONS} ]]; then
                elog 'A wrapper using "yt-dlp --compat-options youtube-dl" was 
installed'

Reply via email to