From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56144) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eWRUo-0002Zn-O0 for guix-patches@gnu.org; Tue, 02 Jan 2018 13:41:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eWRUk-0001C8-K6 for guix-patches@gnu.org; Tue, 02 Jan 2018 13:41:06 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:52981) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eWRUk-0001C2-Gn for guix-patches@gnu.org; Tue, 02 Jan 2018 13:41:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eWRUk-0004Kc-Ak for guix-patches@gnu.org; Tue, 02 Jan 2018 13:41:02 -0500 Subject: [bug#29950] [PATCH] gnu: Add instantmusic. Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55255) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eWRTo-0001hn-Hi for guix-patches@gnu.org; Tue, 02 Jan 2018 13:40:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eWRTk-0000Sj-I4 for guix-patches@gnu.org; Tue, 02 Jan 2018 13:40:04 -0500 Received: from dd5424.kasserver.com ([85.13.138.252]:36167) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eWRTk-0000RF-B8 for guix-patches@gnu.org; Tue, 02 Jan 2018 13:40:00 -0500 From: Stefan =?UTF-8?Q?Reich=C3=B6r?= Date: Tue, 02 Jan 2018 19:39:56 +0100 Message-ID: <151491839599.22521.7205938574875528259.stgit@sandburg> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 29950@debbugs.gnu.org * gnu/packages/music.scm (instantmusic): New variable. --- gnu/packages/music.scm | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/gnu/packages/music.scm b/gnu/packages/music.scm index 5b8728e..db1c33d 100644 --- a/gnu/packages/music.scm +++ b/gnu/packages/music.scm @@ -14,6 +14,7 @@ ;;; Copyright =C2=A9 2017 Pierre Langlois ;;; Copyright =C2=A9 2017 Arun Isaac ;;; Copyright =C2=A9 2017 Tobias Geerinckx-Rice +;;; Copyright =C2=A9 2018 Stefan Reich=C3=B6r ;;; ;;; This file is part of GNU Guix. ;;; @@ -2459,6 +2460,46 @@ websites such as Libre.fm.") (define-public python2-pylast (package-with-python2 python-pylast)) =20 +(define-public instantmusic + (let ((commit "300891d09c703525215fa5a116b9294af1c923c8") + (revision "1")) + (package + (name "instantmusic") + (version (string-append "0.1-" revision "." (string-take commit 9)= )) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/yask123/Instant-Music-Dow= nloader.git") + (commit commit))) + (file-name (string-append name "-" version "-checkout")) + (sha256 + (base32 + "0j7qivaa04bpdz3anmgci5833dgiyfqqwq9fdrpl9m68b34gl773"= )))) + (build-system python-build-system) + (propagated-inputs + `(("python-requests" ,python-requests) + ("eyed3", eyed3) + ("python-beautifulsoup4" ,python-beautifulsoup4) + ("youtube-dl" ,youtube-dl))) + (arguments + '(#:modules ((guix build python-build-system) + (guix build utils) + (srfi srfi-26)) + #:phases (modify-phases %standard-phases + (add-before 'build 'change-directory + (lambda _ + (chdir "instantmusic-0.1") + ;; Fix some read-only files that would cause a bui= ld failure + (for-each (cut chmod <> #o644) + (find-files "instantmusic.egg-info" + "PKG-INFO|.*\\.txt")) + #t))))) + (home-page "http://iyask.me/Instant-Music-Downloader/") + (synopsis "Command line app to download a song from youtube") + (description "Download a song from youtube in .mp3 format. Songs ca= n be +searched by artist, name or even by a part of the song text.") + (license license:expat)))) + (define-public beets (package (name "beets")