From mboxrd@z Thu Jan 1 00:00:00 1970 From: ng0 Subject: [PATCH 2/2] gnu: Add mps-youtube. Date: Fri, 4 Nov 2016 19:23:02 +0000 Message-ID: <20161104192302.19335-3-ng0@we.make.ritual.n0.is> References: <8760o3nkl9.fsf@we.make.ritual.n0.is> <20161104192302.19335-1-ng0@we.make.ritual.n0.is> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47184) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c2k5X-0000Kp-6s for guix-devel@gnu.org; Fri, 04 Nov 2016 15:23:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c2k5W-0001LN-6L for guix-devel@gnu.org; Fri, 04 Nov 2016 15:23:43 -0400 Received: from aibo.runbox.com ([91.220.196.211]:47909) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c2k5V-0001KG-Vw for guix-devel@gnu.org; Fri, 04 Nov 2016 15:23:42 -0400 Received: from [10.9.9.210] (helo=mailfront10.runbox.com) by bars.runbox.com with esmtp (Exim 4.71) (envelope-from ) id 1c2k5V-0003u3-26 for guix-devel@gnu.org; Fri, 04 Nov 2016 20:23:41 +0100 In-Reply-To: <20161104192302.19335-1-ng0@we.make.ritual.n0.is> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org * gnu/packages/video.scm (mps-youtube): New variable. --- gnu/packages/video.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm index 6ce03f7..50dcb5d 100644 --- a/gnu/packages/video.scm +++ b/gnu/packages/video.scm @@ -11,6 +11,7 @@ ;;; Copyright © 2016 Kei Kebreau ;;; Copyright © 2016 Dmitry Nikolaev ;;; Copyright © 2016 Andy Patterson +;;; Copyright © 2016 ng0 ;;; ;;; This file is part of GNU Guix. ;;; @@ -1683,3 +1684,35 @@ 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. +It can use either mpv or mplayer for playback, and for conversion of +formats ffmpeg or libav is used. The choice is up to users which one +they like to go with.") + (license license:gpl3))) -- 2.10.2