guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

11/11: gnu: yt-dlp: Fix build.


From: guix-commits
Subject: 11/11: gnu: yt-dlp: Fix build.
Date: Sat, 25 Jan 2025 11:25:43 -0500 (EST)

dannym pushed a commit to branch master
in repository guix.

commit b226a1007a9111adacb05984b8d74def24257dce
Author: Danny Milosavljevic <dannym@friendly-machines.com>
AuthorDate: Sat Jan 25 17:10:19 2025 +0100

    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 8334b255d7..d0b5907bdd 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 <https://issues.guix.gnu.org/43418#5>.
@@ -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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]