From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id AEMbCzqr7GJzCAEAbAwnHQ (envelope-from ) for ; Fri, 05 Aug 2022 07:31:38 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id MCDhCjqr7GLwqAAAauVa8A (envelope-from ) for ; Fri, 05 Aug 2022 07:31:38 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id C981D3C11D for ; Fri, 5 Aug 2022 07:31:37 +0200 (CEST) Received: from localhost ([::1]:35066 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oJpvs-0007Ev-VY for larch@yhetil.org; Fri, 05 Aug 2022 01:31:37 -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 Content-Transfer-Encoding: 8bit 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+larch=yhetil.org@gnu.org Sender: "Guix-patches" Reply-to: kiasoc5 X-ACL-Warn: , kiasoc5 via Guix-patches From: kiasoc5 via Guix-patches via X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1659677497; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=7qOnREYckzl6J0jInOtUc2HvTGLWypcgBzrTevc1uqI=; b=PIKz+a9KVwrQeEFyrGTGKfqc+pCarYmwSe6jscR4jsCTMZrzm+d2RuuhFYIJLuHhSmpsC/ 71W08vl9JW6OeSKfPQUUo5HL7kUchowasQR+HiIjiiu9Xx+W4JTPpksyEeDk1Olw9X7rVL arNisjvU7NNzDiikklxqQnw0J0Ix6Mij8P4AE9FtS/rqQeO8KPBYv3KnC1Tsirnd0iJMcg u3gw4yUKoPriJukAqYJBKDBeF425XJsDcIOepfm8CAqJpVvERprv1E4MbMujwD0xyObPwg 9GG4v3RZc2SawrJQugHeyT+XNpQnQh4F6Mb0MNohTSDIo8M7ICyfGOcCuMJkmw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1659677497; a=rsa-sha256; cv=none; b=cDj2fuOnxy2a6pUbejQDYZSOGG4pQzdJXzRMvNr9wj48TXdZe9SfSyrB9r+9Pa/nvpImeb FS9rLvsXsg4Zxtr6S3ELRf0MHwvl5c2cq6elfqHiq6p/DXhLitR0uIwjYoyqGPQ6McLtG5 v8kg/ywGmQVj9xzxHm/9vRXFZc3HPZzxI+DvIEQ6F4erxlxnmSp7MKkT/xU2HER9D7lk10 CwUGkhAVLMfc2zxUE4PzL3XrU3VSvZ8pAQQ9ZOgTc19oA4wrGNwlJsHd3GEiQ5uBEVtrAY hohuohTxgdYUXJPoWCMjk8gdX15v7thzG48IWe5B3QnpLCr/WrOAtqDqPsoZjA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=jsjietcN; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -2.41 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=jsjietcN; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: C981D3C11D X-Spam-Score: -2.41 X-Migadu-Scanner: scn0.migadu.com X-TUID: Kk2tDsZ5Rpaz * 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 -- 2.37.1