summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIonen Wolkens <ionen@gentoo.org>2024-02-15 04:09:33 -0500
committerIonen Wolkens <ionen@gentoo.org>2024-02-15 04:30:01 -0500
commit23b95ba64f7ef8da1ec8028c2db38d94475aab3d (patch)
treeefa6ab8dc670cd65587376235637ba5649a22b46 /net-misc
parentdev-libs/link-grammar: mask _AC_UNDECLARED_BUILTIN false positive (diff)
downloadgentoo-23b95ba64f7ef8da1ec8028c2db38d94475aab3d.tar.gz
gentoo-23b95ba64f7ef8da1ec8028c2db38d94475aab3d.tar.bz2
gentoo-23b95ba64f7ef8da1ec8028c2db38d94475aab3d.zip
net-misc/yt-dlp: update live (now using hatchling)
Closes: https://bugs.gentoo.org/924615 Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'net-misc')
-rw-r--r--net-misc/yt-dlp/yt-dlp-9999.ebuild19
1 files changed, 11 insertions, 8 deletions
diff --git a/net-misc/yt-dlp/yt-dlp-9999.ebuild b/net-misc/yt-dlp/yt-dlp-9999.ebuild
index 3c581e629cd6..bbe29b97b747 100644
--- a/net-misc/yt-dlp/yt-dlp-9999.ebuild
+++ b/net-misc/yt-dlp/yt-dlp-9999.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
-DISTUTILS_USE_PEP517=setuptools
+DISTUTILS_USE_PEP517=hatchling
PYTHON_COMPAT=( python3_{10..12} )
inherit bash-completion-r1 distutils-r1 git-r3 optfeature wrapper
@@ -17,18 +17,21 @@ IUSE="man"
RDEPEND="
dev-python/pycryptodome[${PYTHON_USEDEP}]
- !net-misc/youtube-dl[-yt-dlp(-)]"
-BDEPEND="man? ( virtual/pandoc )"
+ !net-misc/youtube-dl[-yt-dlp(-)]
+"
+BDEPEND="
+ man? ( virtual/pandoc )
+"
distutils_enable_tests pytest
src_prepare() {
distutils-r1_src_prepare
- # adjust requires for pycryptodome and optional dependencies (bug #828466)
- sed -ri requirements.txt \
- -e "s/^(pycryptodome)x/\1/" \
- -e "/^(brotli.*|certifi|mutagen|requests|urllib3|websockets)/d" || die
+ # adjust pycryptodome and drop optional dependencies (bug #828466)
+ sed -Ei pyproject.toml \
+ -e 's/("pycryptodome)x/\1/' \
+ -e '/"(brotli.*|certifi|mutagen|requests|urllib3|websockets)/d' || die
}
python_compile() {