Subject: gnu: Add you-get
From: "Feng Shu" <[email-masked]>
To: guix-patches <[email-masked]>
Cc: Feng Shu <[email-masked]>
Date: Sat, 08 Apr 2017 18:33:07 +0800
List-Id: <debbugs-submit.debbugs.gnu.org>

From d5660ea2faac735376572dd93fba8bdbb95ee632 Mon Sep 17 00:00:00 2001
From: Feng Shu <[email-masked]>
Date: Fri, 7 Apr 2017 21:18:55 +0800
Subject: [PATCH] gnu: add you-get

* gnu/packages/video.scm (you-get): New variable.
---
 gnu/packages/video.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm
index 4f005f594..c599991b8 100644
--- a/gnu/packages/video.scm
+++ b/gnu/packages/video.scm
@@ -14,6 +14,7 @@
 ;;; Copyright © 2016, 2017 ng0 <[email-masked]>
 ;;; Copyright © 2016 Eric Bavier <[email-masked]>
 ;;; Copyright © 2016 Jan Nieuwenhuizen <[email-masked]>
+;;; Copyright © 2017 Feng Shu <[email-masked]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -1023,6 +1024,32 @@ YouTube.com and a few more sites.")
     (home-page "https://yt-dl.org")
     (license license:public-domain)))
 
+(define-public you-get
+  (package
+    (name "you-get")
+    (version "0.4.652")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append
+                    "https://github.com/soimort/you-get/releases/download/v"
+                    version "/you-get-" version ".tar.gz"))
+              (sha256
+               (base32
+                "0brkz98lycx8mmxjwmn7jlhqfdbvl0hy070n7skwr1k75kh99q30"))))
+    (build-system python-build-system)
+    (arguments
+     ;; no tests
+     '(#:tests? #f))
+    (inputs
+     `(("ffmpeg" ,ffmpeg)))
+    (synopsis "Download videos, audios or images from the websites")
+    (description
+     "You-Get is a tiny command-line utility to download media contents
+(videos, audios, images) from the Web. It can use either mpv or vlc for
+playback.")
+    (home-page "https://you-get.org/")
+    (license license:expat)))
+
 (define-public libbluray
   (package
     (name "libbluray")
-- 
2.12.2

--