From patchwork Tue May 30 09:22:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Saku Laesvuori X-Patchwork-Id: 50487 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 9072C27BBEA; Tue, 30 May 2023 10:26:59 +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=ham 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 4065127BBE2 for ; Tue, 30 May 2023 10:26:58 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q3vcK-0001Th-Ez; Tue, 30 May 2023 05:26:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q3vcB-0001Sy-LG for guix-patches@gnu.org; Tue, 30 May 2023 05:26:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q3vcA-0005R8-Ht for guix-patches@gnu.org; Tue, 30 May 2023 05:26:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q3vcA-00068Q-Ca for guix-patches@gnu.org; Tue, 30 May 2023 05:26:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#63801] [PATCH] gnu: Add yle-dl Resent-From: Saku Laesvuori Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 30 May 2023 09:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 63801 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 63801@debbugs.gnu.org Cc: Saku Laesvuori X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.168543871023516 (code B ref -1); Tue, 30 May 2023 09:26:02 +0000 Received: (at submit) by debbugs.gnu.org; 30 May 2023 09:25:10 +0000 Received: from localhost ([127.0.0.1]:60071 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q3vbJ-00067D-Un for submit@debbugs.gnu.org; Tue, 30 May 2023 05:25:10 -0400 Received: from lists.gnu.org ([209.51.188.17]:37742) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q3vbF-000670-AZ for submit@debbugs.gnu.org; Tue, 30 May 2023 05:25:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q3vbD-0001Jh-Uy for guix-patches@gnu.org; Tue, 30 May 2023 05:25:03 -0400 Received: from vmi571514.contaboserver.net ([75.119.130.101] helo=mail.laesvuori.fi) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q3vb7-0004T0-92 for guix-patches@gnu.org; Tue, 30 May 2023 05:25:02 -0400 Received: from X-kone.lan (88-113-24-127.elisa-laajakaista.fi [88.113.24.127]) by mail.laesvuori.fi (Postfix) with ESMTPSA id D421934246F; Tue, 30 May 2023 11:25:04 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=laesvuori.fi; s=mail; t=1685438705; bh=nDD51eQ8WES+vYAcWgjPhmmKd+ecK4NQ85+S3UaIlwY=; h=From:To:Cc:Subject:Date; b=G/9Df3vFb/ySTT19BofmBERgKhb830ds3U51u7nRhZib2m/bQBn4kdurhxT1VF+SP lbsAO0mB7uPR2qnsrIgUZUuYdjS6FElDh96dt2j/mrd/nuY+9SsV296Zy5/E1hYHg3 1JSFMNT5HY0EN4RLmrC2tmE2Lb9Zs9xQ8SZWQtLI= Date: Tue, 30 May 2023 12:22:54 +0300 Message-Id: <20230530092254.16603-1-saku@laesvuori.fi> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Received-SPF: pass client-ip=75.119.130.101; envelope-from=saku@laesvuori.fi; helo=mail.laesvuori.fi X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FORGED_SPF_HELO=1, SPF_HELO_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, T_SPF_TEMPERROR=0.01 autolearn=no autolearn_force=no X-Spam_action: no action 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: , Reply-to: Saku Laesvuori X-ACL-Warn: , Saku Laesvuori via Guix-patches X-Patchwork-Original-From: Saku Laesvuori via Guix-patches via From: Saku Laesvuori Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/video.scm (yle-dl): New variable. * gnu/packages/video.scm: Import (gnu packages python-build). --- gnu/packages/video.scm | 52 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) base-commit: 3807876af4b53babdbc2f1d730e4763ff651f316 diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm index ab19c2dd8c..a41fa59552 100644 --- a/gnu/packages/video.scm +++ b/gnu/packages/video.scm @@ -65,6 +65,7 @@ ;;; Copyright © 2022 Andy Tai ;;; Copyright © 2023 Ott Joon ;;; Copyright © 2023 Dominik Delgado Steuter +;;; Copyright © 2023 Saku Laesvuori ;;; ;;; This file is part of GNU Guix. ;;; @@ -179,6 +180,7 @@ (define-module (gnu packages video) #:use-module (gnu packages protobuf) #:use-module (gnu packages pulseaudio) #:use-module (gnu packages python) + #:use-module (gnu packages python-build) #:use-module (gnu packages python-crypto) #:use-module (gnu packages python-web) #:use-module (gnu packages python-xyz) @@ -2468,6 +2470,56 @@ (define-public orf-dl to download videos from Austria's national television broadcaster.") (license license:gpl2+)))) +(define-public yle-dl + (package + (name "yle-dl") + (version "20221231") + (source (origin + ;; PyPI release doesn't include tests + (method git-fetch) + (uri + (git-reference + (url "https://github.com/aajanki/yle-dl.git") + (commit "c2a4d2f3926056496f520e289334d345889b51c4"))) + (sha256 + (base32 + "08pw6x2rc2mv3yrd7qwf2lx9c87ypn0900dfy9nh42b4hyx2jwc6")))) + (build-system pyproject-build-system) + (propagated-inputs + (list + python-attrs + python-configargparse + python-lxml + python-requests + python-xattr)) + (inputs + (list + ffmpeg-5 + wget)) + (native-inputs + (list + python-flit-core + python-pytest + python-pytest-runner)) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (add-after 'wrap 'wrap-path + (lambda _ + (wrap-program (string-append #$output "/bin/yle-dl") + `("PATH" = (,(string-append #$ffmpeg "/bin") + ,(string-append #$wget "/bin")))))) + ;; Integration tests require internet access + (add-before 'check 'remove-integration-tests + (lambda _ + (delete-file-recursively "tests/integration")))))) + (home-page "https://aajanki.github.io/yle-dl/") + (synopsis "Download videos from Yle servers") + (description "Yle-dl is a command line program for downloading media files from +the video streaming services of the Finnish national broadcasting company Yle.") + (license license:gpl3+))) + (define-public youtube-dl (package (name "youtube-dl")