From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id oBgkGWLBdWSCPAAASxT56A (envelope-from ) for ; Tue, 30 May 2023 11:26:58 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id KOo0GGLBdWRhLQEAG6o9tA (envelope-from ) for ; Tue, 30 May 2023 11:26:58 +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 2DDB1A7F7 for ; Tue, 30 May 2023 11:26:58 +0200 (CEST) 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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 From: Saku Laesvuori via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1685438818; a=rsa-sha256; cv=none; b=sGVXSTgTvf3K9Y7of6+zQPlc+1eY2EyWt3RLI6c2nFEfH+NVJNdfp+XpIuT4n4GsbZkGBx 4cicLH16p1GaBaSsQxgcHgolHHIvm1CrHz2ZIS3ff+xojJwpf0Ngw1BAAevH1rahuGTinA VJCKPoLT8GOccjywiQpIEjGgtK3fUKSm45CgxDBd378lOWVD7WzT6iXDF+ndwQV2liWHGC lGxEKkvEQL7/rPn846QTJ0J9xOp9ckLGsJs4BpyMaLN9k90JvakFeZnkCXWFHUtl25JiIm spL6qQbtSNIRg8ko5+EvNST1ifFbJ43XDBLdqtx78H4PD8Jm8Gp6O7/xEJvPWQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=laesvuori.fi header.s=mail header.b="G/9Df3vF"; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1685438818; 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-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=xBtUldOiylUEF2M10SAm6+Cs1XWldRdJ8aHFG/n+M9A=; b=VOFiRvhkxAhHMhaNb5JbsZQjsh7+d4n9lukVmFQiczsk5R3BDkMXZ4KSpyqZSNTntkCrGE 5lHawrM3vvDl0IPDkeDkQanHPGde+Ta56/2PYTi3L3l40IG264DKar/w1IyMPtr7iHkJr2 N27+xbju/tYAD5ItoRAwsNSIp6fSO+JF9fPMvYm1/vOXb438xRy3hT55bT2wDXRnUQP5Iu wKdo4Op3itN7xNL5Vg3GO5cm1XOLe/duBxn4h64bM6T16PefIbxGEiIPSNKpub8vPlTrW7 L1lW4/nhO96c1dMy4NGJjJu+8gHV68a91KaoAxsZ1hLhdiP7C99+rJPt9R0kpw== X-Migadu-Spam-Score: -1.81 X-Spam-Score: -1.81 X-Migadu-Queue-Id: 2DDB1A7F7 X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=laesvuori.fi header.s=mail header.b="G/9Df3vF"; 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-TUID: iBefcy3+s8zm * 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(+) 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") base-commit: 3807876af4b53babdbc2f1d730e4763ff651f316 -- 2.40.1