Package Details: yt-dlp-git 2024.03.10.r9.g86d2f4d-1

Git Clone URL: https://aur.archlinux.org/yt-dlp-git.git (read-only, click to copy)
Package Base: yt-dlp-git
Description: A youtube-dl fork with additional features and fixes (git)
Upstream URL: https://github.com/yt-dlp/yt-dlp
Licenses: Unlicense
Conflicts: yt-dlp
Provides: yt-dlp
Submitter: katt
Maintainer: katt
Last Packager: katt
Votes: 43
Popularity: 1.44
First Submitted: 2021-08-08 15:20 (UTC)
Last Updated: 2024-03-17 17:40 (UTC)

Dependencies (24)

Required by (114)

Sources (1)

Latest Comments

1 2 3 4 5 6 .. 8 Next › Last »

katt commented on 2024-03-13 17:48 (UTC)

@Alad I cannot reproduce this, neither in chroot or outside it. The package in arch's repos is on the same commit and they don't have that as a dep either.

Alad commented on 2024-03-13 11:32 (UTC) (edited on 2024-03-13 11:35 (UTC) by Alad)

test_websockets.py fails:

edit: I suppose python-websockets >=12.0 is required

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
test/test_websockets.py:78: in create_ws_websocket_server
    return create_websocket_server()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

ws_kwargs = {}

    def create_websocket_server(**ws_kwargs):
>       import websockets.sync.server
E       ModuleNotFoundError: No module named 'websockets.sync'

test/test_websockets.py:68: ModuleNotFoundError

katt commented on 2024-02-15 19:16 (UTC)

@bashonly Did it in two steps, didn't have time to actually look into what lazy extractors do until today but wanted a fix out asap. Thanks for the tip! :)

bashonly commented on 2024-02-12 21:54 (UTC)

yt-dlp has migrated from setuptools to hatchling for its build backend as of the latest batch of commits. As a result, the makedepends need to be updated. Also, I would suggest making the lazy extractors during build:

diff --git a/PKGBUILD b/PKGBUILD
index 1fa2398..a21bc0c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -8,7 +8,7 @@ arch=(any)
 url=https://github.com/yt-dlp/yt-dlp
 license=(Unlicense)
 depends=(python python-certifi python-requests)
-makedepends=(pandoc python-build python-installer python-setuptools python-wheel git)
+makedepends=(pandoc python-build python-hatchling python-installer python-wheel git)
 checkdepends=(python-pytest)
 optdepends=('ffmpeg: for video post-processing'
             'rtmpdump: for rtmp streams support'
@@ -41,6 +41,7 @@ prepare() {
 build() {
     cd "${pkgname%-git}"
     make pypi-files
+    python devscripts/make_lazy_extractors.py
     python -m build --wheel --no-isolation
 }

katt commented on 2024-01-06 16:51 (UTC)

@bashonly Thank you for the heads up, I've updated the package to add the new dependencies.

bashonly commented on 2024-01-06 16:27 (UTC)

Hi, I have some suggestions to potentially improve this PKGBUILD:

  • Add python-requests to depends since this is considered a hard dependency upstream since release 2023.11.14

  • python-pycryptodome and python-pycryptodomex are interchangeable as far as yt-dlp is concerned, but the latter's Arch package has been out-of-date for a long time. So the former could be added to optdepends

These changes have been already implemented in the extra repository's yt-dlp package: https://gitlab.archlinux.org/archlinux/packaging/packages/yt-dlp/-/commit/98c72baea6cf81b40e5039ff370044c855affbd2

gesh commented on 2023-11-20 20:27 (UTC)

It appears this is caused by the python-websockets version in extra being out of date. It doesn't seem to need much to update, just bumping pkgver and updating hashes. Indeed, doing so successfully builds (and passes checks)

unknown78 commented on 2023-11-20 10:28 (UTC)

seems like the build doesn't find websockets or requests even acording to pacman python-websockets and python-requests is installed:

pacman -Qs python-websockets
local/python-websockets 10.4-3
pacman -Qs python-requests
local/python-requests 2.31.0-1
test/test_socks.py::TestSocks4Proxy::test_socks4_no_auth[Requests-http] SKIPPED (Requests request handler is not available)                    [ 64%]
test/test_socks.py::TestSocks4Proxy::test_socks4_no_auth[Websockets-ws] SKIPPED (Websockets request handler is not available)                  [ 64%]

katt commented on 2023-09-21 17:41 (UTC)

@kozaki Cannot reproduce here, but since it's about networking it's probably something with your network.