From: Saku Laesvuori via Guix-patches via <guix-patches@gnu.org>
To: 63801@debbugs.gnu.org
Cc: Saku Laesvuori <saku@laesvuori.fi>
Subject: [bug#63801] [PATCH] gnu: Add yle-dl
Date: Tue, 30 May 2023 12:22:54 +0300 [thread overview]
Message-ID: <20230530092254.16603-1-saku@laesvuori.fi> (raw)
* 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 <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 @@ (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
next reply other threads:[~2023-05-30 9:26 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-30 9:22 Saku Laesvuori via Guix-patches via [this message]
2023-07-01 11:22 ` [bug#63801] [PATCH] gnu: Add yle-dl Nicolas Goaziou
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230530092254.16603-1-saku@laesvuori.fi \
--to=guix-patches@gnu.org \
--cc=63801@debbugs.gnu.org \
--cc=saku@laesvuori.fi \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.