[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
14/14: gnu: Add yle-dl.
From: |
guix-commits |
Subject: |
14/14: gnu: Add yle-dl. |
Date: |
Sat, 1 Jul 2023 05:15:15 -0400 (EDT) |
ngz pushed a commit to branch master
in repository guix.
commit 3d55a6b5db7e87e3fb5e17afbe2dac2e66d106e4
Author: Saku Laesvuori via Guix-patches via <guix-patches@gnu.org>
AuthorDate: Tue May 30 12:22:54 2023 +0300
gnu: Add yle-dl.
* gnu/packages/video.scm (yle-dl): New variable.
Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
---
gnu/packages/video.scm | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 48 insertions(+)
diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm
index aa46da0c5e..64428976eb 100644
--- a/gnu/packages/video.scm
+++ b/gnu/packages/video.scm
@@ -65,6 +65,7 @@
;;; Copyright © 2022 Andy Tai <atai@atai.org>
;;; Copyright © 2023 Ott Joon <oj@vern.cc>
;;; Copyright © 2023 Dominik Delgado Steuter <dds@disroot.org>
+;;; Copyright © 2023 Saku Laesvuori <saku@laesvuori.fi>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -179,6 +180,7 @@
#: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,52 @@ To load this plugin, specify the following option when
starting mpv:
to download videos from Austria's national television broadcaster.")
(license license:gpl2+))))
+(define-public yle-dl
+ (package
+ (name "yle-dl")
+ (version "20230611")
+ (source (origin
+ ;; PyPI release doesn't include tests.
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/aajanki/yle-dl")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "04smlq6cswfp08sjif0cxnall0xbxl3bgly849nm5kg1m33ybmqk"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'wrap 'wrap-path
+ (lambda _
+ (wrap-program (string-append #$output "/bin/yle-dl")
+ `("PATH" = (,(string-append #$(this-package-input "ffmpeg")
+ "/bin")
+ ,(string-append #$(this-package-input "wget")
+ "/bin"))))))
+ ;; Integration tests require internet access.
+ (add-before 'check 'remove-integration-tests
+ (lambda _
+ (delete-file-recursively "tests/integration"))))))
+ (native-inputs
+ (list python-flit-core python-pytest python-pytest-runner))
+ (inputs (list bash-minimal ffmpeg-5 wget))
+ (propagated-inputs
+ (list python-attrs
+ python-configargparse
+ python-lxml
+ python-requests
+ python-xattr))
+ (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")
- branch master updated (92d05b79e8 -> 3d55a6b5db), guix-commits, 2023/07/01
- 01/14: gnu: Add show-me-the-key., guix-commits, 2023/07/01
- 05/14: gnu: tpm2-tools: New variable, guix-commits, 2023/07/01
- 04/14: gnu: python-plotly: Update to 5.14.1., guix-commits, 2023/07/01
- 03/14: gnu: python-plotly: Fix version., guix-commits, 2023/07/01
- 14/14: gnu: Add yle-dl.,
guix-commits <=
- 13/14: gnu: erlang: Fix Erlang package substitutions., guix-commits, 2023/07/01
- 09/14: gnu: Add font-intel-one-mono, guix-commits, 2023/07/01
- 02/14: gnu: whoogle-search: Update to 0.8.2., guix-commits, 2023/07/01
- 06/14: gnu: password-store: Fix program name in usage and tmpdir., guix-commits, 2023/07/01
- 07/14: gnu: Add font-ipa., guix-commits, 2023/07/01
- 11/14: gnu: Add qbittorrent-enhanced., guix-commits, 2023/07/01
- 08/14: gnu: Add greaseweazle-host-tools., guix-commits, 2023/07/01
- 10/14: gnu: Add pantheon-wallpapers., guix-commits, 2023/07/01
- 12/14: gnu: Add qbittorrent-enhanced-nox., guix-commits, 2023/07/01