~ruther/guix-local

b226a1007a9111adacb05984b8d74def24257dce — Danny Milosavljevic 1 year, 3 months ago 1406d8b
gnu: yt-dlp: Fix build.

* gnu/packages/video.scm (yt-dlp)[arguments]<#:test-flags>: Fix build.
<#:phases>[check]: Handle test-flags.

Change-Id: Ib6b79b11e37fd88526b3f12b70daa839dd904949
1 files changed, 3 insertions(+), 2 deletions(-)

M gnu/packages/video.scm
M gnu/packages/video.scm => gnu/packages/video.scm +3 -2
@@ 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