From b226a1007a9111adacb05984b8d74def24257dce Mon Sep 17 00:00:00 2001 From: Danny Milosavljevic Date: Sat, 25 Jan 2025 17:10:19 +0100 Subject: [PATCH] gnu: yt-dlp: Fix build. * gnu/packages/video.scm (yt-dlp)[arguments]<#:test-flags>: Fix build. <#:phases>[check]: Handle test-flags. Change-Id: Ib6b79b11e37fd88526b3f12b70daa839dd904949 --- gnu/packages/video.scm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm index 8334b255d75e866e18d16aca20b1508ab4013541..d0b5907bddf40cd2dde6bd9fd51f0db926a7e7cd 100644 --- a/gnu/packages/video.scm +++ b/gnu/packages/video.scm @@ -3184,6 +3184,7 @@ YouTube.com and many more sites.") (build-system pyproject-build-system) (arguments `(#:tests? ,(not (%current-target-system)) + #:test-flags '("--ignore=test/test_websockets.py") #:phases (modify-phases %standard-phases ;; See . @@ -3211,9 +3212,9 @@ YouTube.com and many more sites.") "yt-dlp" "completions")))) (replace 'check - (lambda* (#:key tests? #:allow-other-keys) + (lambda* (#:key tests? test-flags #:allow-other-keys) (when tests? - (invoke "pytest" "-k" "not download"))))))) + (apply invoke "pytest" "-k" "not download" test-flags))))))) (inputs (list ffmpeg python-brotli python-certifi python-mutagen