From patchwork Fri Aug 5 05:30:12 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: kiasoc5 X-Patchwork-Id: 41294 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 1B05A27BBEA; Fri, 5 Aug 2022 06:31:37 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 7F2B127BBE9 for ; Fri, 5 Aug 2022 06:31:36 +0100 (BST) Received: from localhost ([::1]:35066 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oJpvr-0007Ev-Lq for patchwork@mira.cbaines.net; Fri, 05 Aug 2022 01:31:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39378) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oJpvL-0007Ci-Fi for guix-patches@gnu.org; Fri, 05 Aug 2022 01:31:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:37723) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oJpvK-0003Hp-7Z for guix-patches@gnu.org; Fri, 05 Aug 2022 01:31:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oJpvK-00035u-2M for guix-patches@gnu.org; Fri, 05 Aug 2022 01:31:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#56983] [PATCH] gnu: yt-dlp: Update to 2022.07.18, use gexps and new style inputs. References: <20220804203718.6f4a650a@aria> In-Reply-To: <20220804203718.6f4a650a@aria> Resent-From: kiasoc5 Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 05 Aug 2022 05:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56983 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 56983@debbugs.gnu.org Cc: kiasoc5 Received: via spool by 56983-submit@debbugs.gnu.org id=B56983.165967743811855 (code B ref 56983); Fri, 05 Aug 2022 05:31:02 +0000 Received: (at 56983) by debbugs.gnu.org; 5 Aug 2022 05:30:38 +0000 Received: from localhost ([127.0.0.1]:55705 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oJpuv-000358-Nm for submit@debbugs.gnu.org; Fri, 05 Aug 2022 01:30:38 -0400 Received: from knopi.disroot.org ([178.21.23.139]:38214) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oJput-00034v-Dr for 56983@debbugs.gnu.org; Fri, 05 Aug 2022 01:30:36 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 14AA340D95; Fri, 5 Aug 2022 07:30:34 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id AfSUsTJiufka; Fri, 5 Aug 2022 07:30:32 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1659677431; bh=3BneQYkjU96M7yob/lOS35ahRxQB3Z84YBVTcrYu3gg=; h=From:To:Cc:Subject:Date; b=jsjietcN0C5aQ/Kr/DythSRYXFit3NGJRxgelVPL+NBY4bsOX6BLkhfuTJPFCa68F Ds0E+FWadedxRi3yKValg36UtJApWkTqkzj1qgIU4RPft0NmNuZAloNbYD0MfWN7KT SIow4uZ+n3HBSw73g3YakczlDgUoXZ6H+R1UQMzTQ0cwknkH9h9FZ5pADvJ48Ym1S6 JukQt8ruj+5Jis0EFuBn68mUvbseGBNB2gEDrVVi+tgqpGOk7QrinLBMtdRxgbWeUD H2kQsZ9DBJZWIADqmRgBfxh0gQsPpj2EJwYV8zTqV3qP8FZgWhPfr1AG6YQ5hRJuit I8t6Ufq0Wbu6Q== Date: Fri, 5 Aug 2022 01:30:12 -0400 Message-Id: <20220805053011.387828-1-kiasoc5@disroot.org> Mime-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" Reply-to: kiasoc5 X-ACL-Warn: , kiasoc5 via Guix-patches X-Patchwork-Original-From: kiasoc5 via Guix-patches via From: kiasoc5 X-getmail-retrieved-from-mailbox: Patches * gnu/packages/video.scm (yt-dlp): Update to 2022.07.18. [arguments]: Use gexps. [inputs]: Use new style. [native-inputs]: Likewise. --- gnu/packages/video.scm | 70 ++++++++++++++++++++---------------------- 1 file changed, 34 insertions(+), 36 deletions(-) diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm index 04049fd9c8..8cd6d03688 100644 --- a/gnu/packages/video.scm +++ b/gnu/packages/video.scm @@ -2474,7 +2474,7 @@ (define-public youtube-dl (define-public yt-dlp (package/inherit youtube-dl (name "yt-dlp") - (version "2022.06.22.1") + (version "2022.07.18") (source (origin (method url-fetch) (uri (string-append "https://github.com/yt-dlp/yt-dlp/" @@ -2482,7 +2482,7 @@ (define-public yt-dlp version "/yt-dlp.tar.gz")) (sha256 (base32 - "1nr6g3dhvjc10jzhyvgjrrxqhsgi3hiw8bswp8bi6bscimd9vhps")) + "1wmzfqhysx1mqdba4ikvm6nbahasihi4xgqwqad20y3vs701slyj")) (snippet '(begin ;; Delete the pre-generated files, except for the man page @@ -2497,40 +2497,38 @@ (define-public yt-dlp (substitute-keyword-arguments (package-arguments youtube-dl) ((#:tests? _) #t) ((#:phases phases) - `(modify-phases ,phases - ;; See the comment for the corresponding phase in youtube-dl. - (replace 'default-to-the-ffmpeg-input - (lambda _ - (substitute* "yt_dlp/postprocessor/ffmpeg.py" - (("\\.get_param\\('ffmpeg_location'\\)" match) - (format #f "~a or '~a'" match (which "ffmpeg")))))) - (replace 'build-generated-files - (lambda _ - ;; Avoid the yt-dlp.1 target, which requires pandoc. - (invoke "make" "PYTHON=python" "yt-dlp" "completions"))) - (replace 'fix-the-data-directories - (lambda* (#:key outputs #:allow-other-keys) - (let ((prefix (assoc-ref outputs "out"))) - (substitute* "setup.py" - (("'etc/") - (string-append "'" prefix "/etc/")) - (("'share/") - (string-append "'" prefix "/share/")))))) - (delete 'install-completion) - (replace 'check - (lambda* (#:key tests? #:allow-other-keys) - (when tests? - (invoke "pytest" "-k" "not download")))))))) - (inputs - `(("python-brotli" ,python-brotli) - ("python-certifi" ,python-certifi) - ("python-mutagen" ,python-mutagen) - ("python-pycryptodomex" ,python-pycryptodomex) - ("python-websockets" ,python-websockets) - ,@(package-inputs youtube-dl))) - (native-inputs - `(("python-pytest" ,python-pytest) - ,@(package-native-inputs youtube-dl))) + #~(modify-phases #$phases + ;; See the comment for the corresponding phase in youtube-dl. + (replace 'default-to-the-ffmpeg-input + (lambda _ + (substitute* "yt_dlp/postprocessor/ffmpeg.py" + (("\\.get_param\\('ffmpeg_location'\\)" match) + (format #f "~a or '~a'" match (which "ffmpeg")))))) + (replace 'build-generated-files + (lambda _ + ;; Avoid the yt-dlp.1 target, which requires pandoc. + (invoke "make" "PYTHON=python" "yt-dlp" "completions"))) + (replace 'fix-the-data-directories + (lambda* (#:key outputs #:allow-other-keys) + (let ((prefix (assoc-ref outputs "out"))) + (substitute* "setup.py" + (("'etc/") + (string-append "'" prefix "/etc/")) + (("'share/") + (string-append "'" prefix "/share/")))))) + (delete 'install-completion) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "pytest" "-k" "not download")))))))) + (inputs (modify-inputs (package-inputs youtube-dl) + (append python-brotli + python-certifi + python-mutagen + python-pycryptodomex + python-websockets))) + (native-inputs (modify-inputs (package-native-inputs youtube-dl) + (append python-pytest))) (description "yt-dlp is a small command-line program to download videos from YouTube.com and many more sites. It is a fork of youtube-dl with a