commit: a166c5ac3635a3e0373f0e1588cd254d7ee5883b
Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Sun Feb 22 00:19:44 2026 +0000
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Sun Feb 22 00:30:58 2026 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a166c5ac
dev-python/yt-dlp-ejs: add 0.5.0
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>
dev-python/yt-dlp-ejs/Manifest | 2 ++
dev-python/yt-dlp-ejs/yt-dlp-ejs-0.5.0.ebuild | 37 +++++++++++++++++++++++++++
2 files changed, 39 insertions(+)
diff --git a/dev-python/yt-dlp-ejs/Manifest b/dev-python/yt-dlp-ejs/Manifest
index a73495cbc8dd..96302316068b 100644
--- a/dev-python/yt-dlp-ejs/Manifest
+++ b/dev-python/yt-dlp-ejs/Manifest
@@ -2,3 +2,5 @@ DIST yt_dlp_ejs-0.3.2-py3-none-any.whl.zip 53252 BLAKE2B
8acedb96906b52b4d2befc5
DIST yt_dlp_ejs-0.3.2.tar.gz 34678 BLAKE2B
c2d21f084fb6e8127552dbbfd08f951781a42fcfd7c0b22779f5c31e936d0e51989f765a721c2ae527eb01eb241966a45aa1295f5708675c18365b4bc3dbc51b
SHA512
75b71ed5f9e9eddd972fd44d674a9dcc8606d5939ab467fa0df7532bfd9cc48277fa69656012f17e958914ad3220f99ec047c3cba3dfff15019125ffa5d02d1b
DIST yt_dlp_ejs-0.4.0-py3-none-any.whl.zip 53600 BLAKE2B
3857fde19e6d186668817c7c15a591387b1959a5e848e499be5f41d911e2feea0fc745ce91abc4c4fc074e3345354cd797799da2b7621292aff5e7504994569c
SHA512
b36118a87f5da0877949abc13f1e1c339168fbf8994912ada0e73f4ba369d4f1cd6b1916a7d684ea9b872620bcec652272c8c021c70b6af12faa912b7bab1d89
DIST yt_dlp_ejs-0.4.0.tar.gz 96768 BLAKE2B
21e74c61a1aa1f39ae309aca2679a84598900cc0f835b3f8b61680c4cb79f69da39827e3b6bd08c36c8a9cdae9da41ea48b674f7654473cb645648de3b012555
SHA512
6282ce4d014339ede98d8332c6d5d344bed7911ecaa395a30ee36a2607977af179c25262a558a4b1299b27a5c511e1b4082fe6ba57eb8b86525d59cd85b5c201
+DIST yt_dlp_ejs-0.5.0-py3-none-any.whl.zip 54032 BLAKE2B
79bba8a7f4c6a7c2cc866ced9e426ec1eea442d6c53f380db2b71be348cca31a2c5dc443bbadbacee0c2697edefd5ef439bd2ad4f9867d95ae96b1d183e3b34e
SHA512
797ed620a749dea31a4e0387f788ddf58d3822b4c99111ff73c228d6dd2245f81a5df9dc284d6d62803602b0ce3c9fd55bfc268d2b425285cea7dd72f8034d96
+DIST yt_dlp_ejs-0.5.0.tar.gz 98925 BLAKE2B
6f2349e403f4fbaacf1fc6ef3d451b921e4eedb4ea569174746f3ed8a556b56bc76e1199871d9419403144a375d6a0f48df19dfd3c435ab654fda207834ae150
SHA512
24efda187bd80c8cfce2eaa7ad889b50a08703ec462dfb60d19ef9b643a5e6e2cdbe4806b6e0559ee2303e0fe9c3d76fabcd29364d02e7cdbfbf434710dad5b0
diff --git a/dev-python/yt-dlp-ejs/yt-dlp-ejs-0.5.0.ebuild
b/dev-python/yt-dlp-ejs/yt-dlp-ejs-0.5.0.ebuild
new file mode 100644
index 000000000000..f21c67dcb2e7
--- /dev/null
+++ b/dev-python/yt-dlp-ejs/yt-dlp-ejs-0.5.0.ebuild
@@ -0,0 +1,37 @@
+# Copyright 2025-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=hatchling
+PYTHON_COMPAT=( pypy3_11 python3_{11..14} )
+inherit distutils-r1 pypi
+
+DESCRIPTION="External JavaScript for yt-dlp supporting many runtimes"
+HOMEPAGE="https://github.com/yt-dlp/ejs/"
+# wheel for .js files, github's assets also has them but uncompressed
+SRC_URI+=" $(pypi_wheel_url --unpack)"
+
+LICENSE="Unlicense"
+LICENSE+=" ISC MIT" # .js dependencies
+SLOT="0"
+# bumps should typically be done straight-to-stable like yt-dlp itself
+KEYWORDS="amd64 arm arm64 ~hppa ppc ppc64 ~riscv x86 ~arm64-macos ~x64-macos"
+
+BDEPEND="
+ app-arch/unzip
+ dev-python/hatch-vcs[${PYTHON_USEDEP}]
+"
+
+# this only tests basic python bits without javascript to avoid headaches
+distutils_enable_tests unittest
+
+src_prepare() {
+ distutils-r1_src_prepare
+
+ # drop deno/npm calls and use pre-generated .js instead, this
+ # both prevents network use and ensures no hash mismatch given
+ # yt-dlp checks the sha512sum of the .js files
+ sed -i '/wheel.hooks.custom/,/^$/d' pyproject.toml || die
+ mv ../yt_dlp_ejs/yt/solver/*.js yt_dlp_ejs/yt/solver/ || die
+}