commit: 98e673957e23f4fd9edbff4341ce49195542a2a2
Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Fri Nov 7 21:53:04 2025 +0000
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Fri Nov 7 21:53:04 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=98e67395
dev-python/yt-dlp-ejs: add 0.3.1
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.3.1.ebuild | 37 +++++++++++++++++++++++++++
2 files changed, 39 insertions(+)
diff --git a/dev-python/yt-dlp-ejs/Manifest b/dev-python/yt-dlp-ejs/Manifest
index dd4bc84b47f6..c5ded7e0acd3 100644
--- a/dev-python/yt-dlp-ejs/Manifest
+++ b/dev-python/yt-dlp-ejs/Manifest
@@ -1,2 +1,4 @@
DIST yt_dlp_ejs-0.3.0-py3-none-any.whl.zip 53157 BLAKE2B
172de8237ee2a69c77507b6086c5cdbf76425caf8730f4234fa9d233645c911b6a6ff04390b80de8a02dc541f477ce2d5696dde057828ae3b84e8903d673f9b3
SHA512
c3544c61515e889f6edb6d13ee3fcb53a4f852373f1ed1e30d7de8b03e17384286fad25cd9c3be41a2e2864aa36655268ba042fac3655c81812b802b75e78603
DIST yt_dlp_ejs-0.3.0.tar.gz 33775 BLAKE2B
acdeaed46d6bad87532d4b3008e6be35f787ce061473b4b0f808d83b5c5502c03e1aa3b068ee1cdd5aeb8f1c180e79d212dd9ac6ea32a834661b3d7c1c57bc5f
SHA512
e76b306f0e1a943a2b337c61cf05ad75f880db6ff8744f1c4b5292874024b8f5a991a5c00e5f55eea1beadca9a6cad0f09c82f57b72b34c4bdc1a7bf637ac93f
+DIST yt_dlp_ejs-0.3.1-py3-none-any.whl.zip 53155 BLAKE2B
3fddc11eb4d15f3886737866ba11a1bd430e7e19b5313ee15abd912071095bd7b17015db0fcc58da7706068bbfab5aea803a6e3650905be1515a36263718d521
SHA512
9abbdf72a24cceccaa939c7419c6fa89afcfd7a0f36632588566a2a8075f39e91c1b952f42fcb525767e997090b526ba59fc7e91e4e5fc24ae25ffd2ad59b1ea
+DIST yt_dlp_ejs-0.3.1.tar.gz 33805 BLAKE2B
ed9a0b9c164246dcdc196b85c63611fbfa595a482ad3e43d6a1247a4d789c2a57a917c43fbf018a834bda197ce16ac6049152ae1bac2f07514dcc8c40e699df1
SHA512
1693fd171dd62b15c7b686763d5d1bc70c43ae8ed81dd80e13e87c833ea00213624d64a34f6f3bcd409c52b7ee1401284a582a9782fa783063ce9da40a4c91e2
diff --git a/dev-python/yt-dlp-ejs/yt-dlp-ejs-0.3.1.ebuild
b/dev-python/yt-dlp-ejs/yt-dlp-ejs-0.3.1.ebuild
new file mode 100644
index 000000000000..a915c54d984d
--- /dev/null
+++ b/dev-python/yt-dlp-ejs/yt-dlp-ejs-0.3.1.ebuild
@@ -0,0 +1,37 @@
+# Copyright 2025 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/"
+SRC_URI+=" $(pypi_wheel_url --unpack)"
+
+LICENSE="Unlicense"
+LICENSE+=" ISC MIT" # .js dependencies from the wheel
+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 the pre-generated .js from the .whl
+ # instead, this both prevents network use and ensures no hash
+ # mismatch given yt-dlp checks the sha512sum of the .js files
+ # (makes generating our own meaningless given can't be patched)
+ sed -i '/wheel.hooks.custom/d' pyproject.toml || die
+ mv ../yt_dlp_ejs/yt/solver/*.js yt_dlp_ejs/yt/solver/ || die
+}