@@ -11,6 +11,7 @@
;;; Copyright © 2016 Kei Kebreau <kei@openmailbox.org>
;;; Copyright © 2016 Dmitry Nikolaev <cameltheman@gmail.com>
;;; Copyright © 2016 Andy Patterson <ajpatter@uwaterloo.ca>
+;;; Copyright © 2016 ng0 <ng0@we.make.ritual.n0.is>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -1683,3 +1684,32 @@ specifications.")
(description "libaacs is a library which implements the Advanced Access
Content System specification.")
(license license:lgpl2.1+)))
+
+(define-public mps-youtube
+ (package
+ (name "mps-youtube")
+ (version "0.2.7.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append "https://github.com/mps-youtube/mps-youtube/"
+ "archive/v" version ".tar.gz"))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "1s7h35yx6f0szf8mm8612ic913w3v05m2kwphjfcxnpq0ammhyci"))))
+ (build-system python-build-system)
+ (propagated-inputs
+ `(("python-pafy" ,python-pafy)
+ ("python-pygobject" ,python-pygobject))) ; For mpris2 support
+ ;; These are runtime requirements.
+ (inputs
+ `(("mpv" ,mpv)
+ ("ffmpeg" ,ffmpeg))) ; For the convertion feature
+ (home-page "http://github.com/np1/mps-youtube")
+ (synopsis "Terminal based YouTube player and downloader")
+ (description
+ "@code{mps-youtube} is based on mps, a terminal based program to
+search, stream and download music. This implementation uses YouTube as
+a source of content and can play and download video as well as audio.")
+ (license license:gpl3)))