commit: 23b95ba64f7ef8da1ec8028c2db38d94475aab3d Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org> AuthorDate: Thu Feb 15 09:09:33 2024 +0000 Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org> CommitDate: Thu Feb 15 09:30:01 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=23b95ba6
net-misc/yt-dlp: update live (now using hatchling) Closes: https://bugs.gentoo.org/924615 Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org> net-misc/yt-dlp/yt-dlp-9999.ebuild | 19 +++++++++++-------- 1 file 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() {