Subject: bug#29950: closed (Re: [bug#29950] [PATCH] gnu: Add instantmusic.)

From: [email-masked] (GNU bug Tracking System)
Date: Sun, 28 Jan 2018 22:47:02 +0000

Your bug report

#29950: [PATCH] gnu: Add instantmusic.

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
29950: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=29950
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: [bug#29950] [PATCH] gnu: Add instantmusic.
From: [email-masked] (Ludovic Courtès)
To: Stefan Reichör <[email-masked]>
Cc: [email-masked], Leo Famulari <[email-masked]>
Date: Sun, 28 Jan 2018 23:46:05 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

Hi Stefan,

Stefan Reichör <[email-masked]> skribis:

>> Can you send an updated patch?
>
> * gnu/packages/music.scm (instantmusic): New variable.

I applied the cosmetic changes below and committed.

In the future please send the file produced by ‘git format-patch’ so
that the reviewer can directly pipe it through ‘git am’.

Thank you!

Ludo’.

diff --git a/gnu/packages/music.scm b/gnu/packages/music.scm
index 57ef87bf9..9e06bf55a 100644
--- a/gnu/packages/music.scm
+++ b/gnu/packages/music.scm
@@ -2527,9 +2527,9 @@ websites such as Libre.fm.")
                                             "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 can be
-searched by artist, name or even by a part of the song text.")
+    (synopsis "Command-line program to download a song from YouTube")
+    (description "InstantMusic downloads a song from YouTube in MP3 format.
+Songs can be searched by artist, name or even by a part of the song text.")
     (license license:expat))))
 
 (define-public beets

Subject: [PATCH] gnu: Add instantmusic.
From: Stefan Reichör <[email-masked]>
To: [email-masked]
Date: Tue, 02 Jan 2018 19:39:56 +0100
List-Id: <debbugs-submit.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 © 2017 Pierre Langlois <[email-masked]>
 ;;; Copyright © 2017 Arun Isaac <[email-masked]>
 ;;; Copyright © 2017 Tobias Geerinckx-Rice <[email-masked]>
+;;; Copyright © 2018 Stefan Reichör <[email-masked]>
 ;;;
 ;;; 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))
 
+(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-Downloader.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 build 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 can be
+searched by artist, name or even by a part of the song text.")
+    (license license:expat))))
+
 (define-public beets
   (package
     (name "beets")