diff options
| author | root <root@alpha.trunkmasters.com> | 2026-06-12 19:09:37 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-06-12 19:09:37 -0500 |
| commit | b590c8d7572b727d565cc0b8ff660d43569845de (patch) | |
| tree | 06f7a4102ea4e845df8b66660f252920d52952f9 /dev-python/yt-dlp-ejs | |
| parent | 24f9cbfc4c34fdb6a6e03311674414e881ceab47 (diff) | |
| download | baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.gz baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.xz baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.zip | |
Adding metadata
Diffstat (limited to 'dev-python/yt-dlp-ejs')
| -rw-r--r-- | dev-python/yt-dlp-ejs/Manifest | 3 | ||||
| -rw-r--r-- | dev-python/yt-dlp-ejs/metadata.xml | 10 | ||||
| -rw-r--r-- | dev-python/yt-dlp-ejs/yt-dlp-ejs-0.8.0.ebuild | 38 |
3 files changed, 51 insertions, 0 deletions
diff --git a/dev-python/yt-dlp-ejs/Manifest b/dev-python/yt-dlp-ejs/Manifest new file mode 100644 index 000000000000..c70b502005e6 --- /dev/null +++ b/dev-python/yt-dlp-ejs/Manifest @@ -0,0 +1,3 @@ +DIST yt_dlp_ejs-0.8.0-py3-none-any.whl.zip 53443 BLAKE2B 7ff74d005b4a6eb6a05b9137bbd37a0effaf24d12c2bd985114b6e874bd5535a983efe7c50cffd9f96f80e89906aba7fad602b8e15275cd9eefde6f9f77df8f2 SHA512 e1fe4799fa9c5f96acdd4f97b0545e671db17b906e3b91add2ad9c1756f020dbb3424dee5addfe64b63c82d7e54fc006c1912630ad021f70c8ef065fedde5d98 +DIST yt_dlp_ejs-0.8.0.tar.gz 96571 BLAKE2B 2875831b7141b47625c1475addb621ac01b3296491f8689d6ff21a3e099a2fa73d7276249353019b530102ede7345b8c78f6091d3bb1bb90be17b6e80bbe1b2f SHA512 25c6b005fcb034abb0fa20720538fafd64ba61742419ef72ff9a81fca75e3ebaff34a63407d6fca9331e7fd743ccc42e6b5bf280607031df62a06a65b2493211 +DIST yt_dlp_ejs-0.8.0.tar.gz.provenance 9168 BLAKE2B fe7274231567cb67cb187b6bc058a6440b2fcea9d69ac6967103a7b1c2e41cd8066208b32eaa25337844d471324e4b018cbdf3cc1e6856fe8cae6596ef4db6c4 SHA512 2cff38894f8c4802819cbbf85d9b96f78e3e5ab7418aaa7605202813e8642fa8ea69a85fb223ab6074a989fe1add43df668df82cc5c3c0f43e0bf909673b38a8 diff --git a/dev-python/yt-dlp-ejs/metadata.xml b/dev-python/yt-dlp-ejs/metadata.xml new file mode 100644 index 000000000000..5fb88ec82f25 --- /dev/null +++ b/dev-python/yt-dlp-ejs/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>ionen@gentoo.org</email> + <name>Ionen Wolkens</name> + </maintainer> + <stabilize-allarches /> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-python/yt-dlp-ejs/yt-dlp-ejs-0.8.0.ebuild b/dev-python/yt-dlp-ejs/yt-dlp-ejs-0.8.0.ebuild new file mode 100644 index 000000000000..6e64fb70665c --- /dev/null +++ b/dev-python/yt-dlp-ejs/yt-dlp-ejs-0.8.0.ebuild @@ -0,0 +1,38 @@ +# Copyright 2025-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=hatchling +PYPI_VERIFY_REPO=https://github.com/yt-dlp/ejs +PYTHON_COMPAT=( python3_{13..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 +} |
