From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 0PCBJuf6d2FSdAEAgWs5BA (envelope-from ) for ; Tue, 26 Oct 2021 14:56:07 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id WeAwIuf6d2E1cQAA1q6Kng (envelope-from ) for ; Tue, 26 Oct 2021 12:56:07 +0000 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 1EB4F178CD for ; Tue, 26 Oct 2021 14:56:07 +0200 (CEST) Received: from localhost ([::1]:36942 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mfLzq-0001ST-AO for larch@yhetil.org; Tue, 26 Oct 2021 08:56:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56614) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mfLyo-0001QK-EN for guix-patches@gnu.org; Tue, 26 Oct 2021 08:55:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:33844) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mfLyo-0006Jp-4D for guix-patches@gnu.org; Tue, 26 Oct 2021 08:55:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mfLyo-0006gC-1q for guix-patches@gnu.org; Tue, 26 Oct 2021 08:55:02 -0400 Subject: bug#51179: [PATCH] gnu: Add yt-dlp. Resent-From: Liliana Marie Prikler Original-Sender: "Debbugs-submit" Resent-To: guix-patches@gnu.org Resent-Date: Tue, 26 Oct 2021 12:55:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 51179 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Robin Templeton Cc: 51179-done@debbugs.gnu.org Mail-Followup-To: 51179@debbugs.gnu.org, liliana.prikler@gmail.com, robin@terpri.org Received: via spool by 51179-done@debbugs.gnu.org id=D51179.163525288825638 (code D ref 51179); Tue, 26 Oct 2021 12:55:01 +0000 Received: (at 51179-done) by debbugs.gnu.org; 26 Oct 2021 12:54:48 +0000 Received: from localhost ([127.0.0.1]:45388 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mfLyR-0006fF-RR for submit@debbugs.gnu.org; Tue, 26 Oct 2021 08:54:47 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:34537) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mfLyQ-0006ey-4u for 51179-done@debbugs.gnu.org; Tue, 26 Oct 2021 08:54:39 -0400 Received: by mail-wr1-f66.google.com with SMTP id d10so14978681wrb.1 for <51179-done@debbugs.gnu.org>; Tue, 26 Oct 2021 05:54:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:subject:from:to:cc:date:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=Fs6oFnUUKbIKok0VFKXL+JRr6Ye3lroPCs/UE4piN3Y=; b=lYD0Y6ghyqrAYtbMN2TfMcJfReZTVgcQHR1a6Y5PRdXgbG1Ln7Lg4mw0oJiQyv9juu RVFO6g5suK/+wwcVpvb9WEfHm8TUZE1waMJJjQhA1aVcQvaIZqedmkzEC7VgP/l8tH2s 7asueoB4MJ/e3oI1rRFC/IGfZiAJTUwe1UoGISS1lqFP1SgfIjT4yQwXTFVie80xFb1u g/yaoZv7ivorgWYPwi9vsnHuQxulQqB4Ex32XwnR+BW6FxkhuSNJUjeFSi4V7NJSgXqR MauP24TitaZzzPCrJxopawfCPH1IEazc8j64le/4b6FFOI9HB95vwLX7WfCgpP9EkMpY 0Y7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=Fs6oFnUUKbIKok0VFKXL+JRr6Ye3lroPCs/UE4piN3Y=; b=qtEMqJoRtveM8vl9UqP0TYhdcjAssw+XQJLEkR8HFYQ1x3myHOjJNOkIMUPZxK4IV+ BMs6mXF3dJA0lGZbN32fjpeC6hjOp0q7CIXEYxbKfqNf5Paf18yq1TIW2xAfwbA1sv3E bndOMUVbsk/OnNRHQdylbh3I4aRV8i3U6E6haY+Y+M+P5qF9ZS6xTJFw0pyYWNg2Ejtz NaAVuFXDXz9RBNUpMrAnEI6q8Oikjp0K+2H8SJRmU65RlIPhu8bVGGB2OHT5UNNcrYY7 W2PS5W8NYdI2sYJBk6oXskG8bl9yFFkN356Q6JvltbjotEX7To9T6Xia6VyBxUYs2LRL TY9Q== X-Gm-Message-State: AOAM532Xgbh/sKdlbv5t+Siow6hcYvUgOJ6ONuHSXuJtTOCwS2wQRlxs PMCzB9ikjAFybXzjkHEq+l7k4gqzfSxscA== X-Google-Smtp-Source: ABdhPJxfYFnMtP4kBzsSG2oCHTHH9uEJBcG+C5Uex6/3gNed2pwLnfq9NTkeuwo2dUJdmF6DNvRxgA== X-Received: by 2002:adf:a413:: with SMTP id d19mr32474743wra.246.1635252872055; Tue, 26 Oct 2021 05:54:32 -0700 (PDT) Received: from nijino.fritz.box (85-127-52-93.dsl.dynamic.surfer.at. [85.127.52.93]) by smtp.gmail.com with ESMTPSA id p17sm527150wmd.1.2021.10.26.05.54.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Oct 2021 05:54:31 -0700 (PDT) Message-ID: From: Liliana Marie Prikler Date: Tue, 26 Oct 2021 14:54:30 +0200 In-Reply-To: <87wnm1u66f.fsf_-_@terpri.org> References: <87pms9mf7a.fsf@terpri.org> <87ee8pm6sn.fsf_-_@terpri.org> <99268fb747b2278cc0e279c5efc83f5bbbfaccf1.camel@gmail.com> <8735opvlvd.fsf@terpri.org> <87wnm1u66f.fsf_-_@terpri.org> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.2 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" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1635252967; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-to: 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=Fs6oFnUUKbIKok0VFKXL+JRr6Ye3lroPCs/UE4piN3Y=; b=NU3gPQFlm6VdYXebrLRtjYwdUPNA8Yc+s0gLpeDgPKeUfneNODsBsYr9TqGaPpyDW0hFt6 J1EF6ouiP2l37pamG1p7J7vfzk4qXVKiE9Eov60vE2wS7iceiwnszaiJct9SMTAaXKCK2n JPmezm+6MzU5XdnXTVrx2N7AGJHmtKDj/ZuwvmqdkSsewxNzcnDG+IKznpTdFCg+Zm1LTv S1dYjc066b8nr0U1ogtz4GMQ0CHc3jhSMiz2nadeitb1fz7pLDyqx87t+uhOfmO6JdWQji 94fSurwNE0haTy35SYYqPUKJtM4MFvTUSpYpZ5l/P9AZ1/NA8sozmAbez99xMQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1635252967; a=rsa-sha256; cv=none; b=jrKm283ZxrPbRT9L0aSVYwq/Z3GmYVzU1UPjQ3VS7UQ7RY8zCem78fJ8K4Jur+f3+sOdPi 9q/+NnVGhoN+0w5YDIx5FcIOCcE0LvKCy3nLsWKtO5mmQzj818uC5hjCGW77Z84BXjhON2 JYehVz+vHn0UF4xD7/c6mHZN9KMPTSQS+iyzHyOCEdWDBRv/lvhP/d2XdLH29NKCcE9HCY pZ2Gp6m088TwgWSDm6cW3AZovDw6KcLRnyvJWGcoT399avlMGyz9gz0Ju3AySJ7RdAT9bU sJJ2i8cR2O36/ZXtwLebNV/tDuq1jJqCdyTB8qW3V0be7hN1VN2gg5WLXYlwEA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=lYD0Y6gh; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -1.33 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=lYD0Y6gh; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 1EB4F178CD X-Spam-Score: -1.33 X-Migadu-Scanner: scn0.migadu.com X-TUID: /G0Kz4e1uFEx Hi, I've pushed this patch with the following adjustments, Am Sonntag, den 24.10.2021, 23:36 -0400 schrieb Robin Templeton: > * gnu/packages/video.scm (yt-dlp): New variable. > > Co-authored-by: Morgan Smith > Suggested-by: bdju > --- > Add check phase from Morgan's package and use latest yt-dlp release > > gnu/packages/video.scm | 70 > ++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 70 insertions(+) > > diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm > index d2a2a08ee3..a2ae26987a 100644 > --- a/gnu/packages/video.scm > +++ b/gnu/packages/video.scm > @@ -53,6 +53,7 @@ > ;;; Copyright © 2020 Hartmut Goebel > ;;; Copyright © 2021 Raghav Gururajan > ;;; Copyright © 2021 Petr Hodina > +;;; Copyright © 2021 Robin Templeton > ;;; > ;;; This file is part of GNU Guix. > ;;; > @@ -142,6 +143,7 @@ (define-module (gnu packages video) > #:use-module (gnu packages man) > #:use-module (gnu packages markup) > #:use-module (gnu packages maths) > + #:use-module (gnu packages music) > #:use-module (gnu packages mp3) > #:use-module (gnu packages ncurses) > #:use-module (gnu packages networking) > @@ -2360,6 +2362,74 @@ (define-public youtube-dl > (home-page "https://yt-dl.org") > (license license:public-domain))) > > +(define-public yt-dlp > + (package/inherit youtube-dl > + (name "yt-dlp") > + (version "2021.10.22") > + (source (origin > + (method url-fetch) > + (uri (string-append "https://github.com/yt-dlp/yt-dlp/ > " > + "releases/download/" > + version "/yt-dlp.tar.gz")) > + (sha256 > + (base32 > + "0xh4cwmvx49pxn8x07wj2dy8ynj6xg8977l5493vv0l8zc27wp8 > 7")) > + (snippet > + '(begin > + ;; Delete the pre-generated files, except for the > man page > + ;; which requires 'pandoc' to build. > + (for-each delete-file '("yt-dlp" > + ;;pandoc is needed to > generate > + ;;"yt-dlp.1" > + "completions/bash/yt-dlp" > + "completions/fish/yt- > dlp.fish" > + "completions/zsh/_yt- > dlp")) > + #t)))) > + (arguments > + (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\\('ffmpeg_location'\\)" match) > + (format #f "~a or '~a'" match (which "ffmpeg")))) "get" becomes "get_param" in yt-dlp. > + #t)) > + (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/")))) > + #t)) > + (delete 'install-completion) > + (replace 'check > + (lambda* (#:key tests? #:allow-other-keys) > + (when tests? > + (invoke "pytest" "-k" "not download")))))))) > + (inputs > + `(("python-mutagen" ,python-mutagen) > + ("python-pycryptodomex" ,python-pycryptodomex) > + ("python-websockets" ,python-websockets) > + ,@(package-propagated-inputs youtube-dl))) Used (package-inputs) as it should be. > + (native-inputs > + `(("python-pytest" ,python-pytest) > + ,@(package-native-inputs youtube-dl))) > + (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 > +focus on adding new features while keeping up-to-date with the > +original project.") > + (home-page "https://github.com/yt-dlp/yt-dlp"))) Thanks