diff options
Diffstat (limited to 'dev-python/yt-dlp-ejs')
| -rw-r--r-- | dev-python/yt-dlp-ejs/Manifest | 2 | ||||
| -rw-r--r-- | dev-python/yt-dlp-ejs/yt-dlp-ejs-0.3.2.ebuild | 37 |
2 files changed, 39 insertions, 0 deletions
diff --git a/dev-python/yt-dlp-ejs/Manifest b/dev-python/yt-dlp-ejs/Manifest index 5b3fade08815..feba764492a8 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.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 +DIST yt_dlp_ejs-0.3.2-py3-none-any.whl.zip 53252 BLAKE2B 8acedb96906b52b4d2befc592b2ae96d814bda0a93d02d244e563506e8a648cdd2cf45d3ff57823553b7fb2af419634ab6e8441b7f8ea8b95b10d036b4d0de9e SHA512 b904143b0bbd0d75ba167d26b163ae1680a1658d95d69065eda16d3adab547d230ab453f0d7562948ec100313d0289c3f971e4712dc14df24c8a5d5c0529ede2 +DIST yt_dlp_ejs-0.3.2.tar.gz 34678 BLAKE2B c2d21f084fb6e8127552dbbfd08f951781a42fcfd7c0b22779f5c31e936d0e51989f765a721c2ae527eb01eb241966a45aa1295f5708675c18365b4bc3dbc51b SHA512 75b71ed5f9e9eddd972fd44d674a9dcc8606d5939ab467fa0df7532bfd9cc48277fa69656012f17e958914ad3220f99ec047c3cba3dfff15019125ffa5d02d1b diff --git a/dev-python/yt-dlp-ejs/yt-dlp-ejs-0.3.2.ebuild b/dev-python/yt-dlp-ejs/yt-dlp-ejs-0.3.2.ebuild new file mode 100644 index 000000000000..aef90feb5d99 --- /dev/null +++ b/dev-python/yt-dlp-ejs/yt-dlp-ejs-0.3.2.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/" +# 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 +} |
