Subject: [bug#57162] [PATCH] gnu: pipe-viewer: Update to 0.2.3

From: ykonai <[email-masked]>
Date: Fri, 12 Aug 2022 23:01:26 +0200

* gnu/packages/video.scm (pipe-viewer): Update to 0.2.3
* gnu/packages/video.scm (pipe-viewer): Remove unnecessary dependency on
youtube-dl

Currently, this program is broken due to an API change with Youtube. This
update should fix it. Youtube-dl should be unnecessary since 0.2.1.
---
 gnu/packages/video.scm | 11 ++---------
 1 file changed, 2 insertions(+), 9 deletions(-)

diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm
index 6d0b5ccb58..f575dd0cfe 100644
--- a/gnu/packages/video.scm
+++ b/gnu/packages/video.scm
@@ -1090,7 +1090,7 @@ (define-public mkvtoolnix
 (define-public pipe-viewer
   (package
     (name "pipe-viewer")
-    (version "0.2.0")
+    (version "0.2.3")
     (source
      (origin
        (method git-fetch)
@@ -1100,7 +1100,7 @@ (define-public pipe-viewer
          (commit version)))
        (file-name (git-file-name name version))
        (sha256
-        (base32 "19qfs0nv7l01468f14a5zbvaiff5hrsk3a4zqknh15014xnvw08s"))))
+        (base32 "0c2v4pj86442sp71ndjmvd2bl1grp6g9ya2ywdaihq1f2djk6jxl"))))
     (build-system perl-build-system)
     (arguments
      `(#:imported-modules
@@ -1120,9 +1120,6 @@ (define-public pipe-viewer
          (add-after 'unpack 'patch-source
            (lambda* (#:key inputs #:allow-other-keys)
              (substitute* (find-files "lib" "\\.pm$")
-               (("\"youtube-dl\"")
-                (format #f "\"~a/bin/youtube-dl\""
-                        (assoc-ref inputs "youtube-dl")))
                (("\"yt-dlp\"")
                 (format #f "\"~a/bin/yt-dlp\""
                         (assoc-ref inputs "yt-dlp"))))
@@ -1136,9 +1133,6 @@ (define-public pipe-viewer
                (("'xdg-open'")
                 (format #f "'~a/bin/xdg-open'"
                         (assoc-ref inputs "xdg-utils")))
-               (("'youtube-dl'")
-                (format #f "'~a/bin/youtube-dl'"
-                        (assoc-ref inputs "youtube-dl")))
                (("'yt-dlp'")
                 (format #f "'~a/bin/yt-dlp'"
                         (assoc-ref inputs "yt-dlp"))))))
@@ -1192,7 +1186,6 @@ (define-public pipe-viewer
            perl-uri-escape
            wget
            xdg-utils
-           youtube-dl
            yt-dlp))
     (propagated-inputs
      (list dconf))

base-commit: ecc2587f1f2c4bd693f1f08a9f681a3d829d0289
-- 
2.35.1