unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Thomas Danckaert <post@thomasdanckaert.be>
To: 27851@debbugs.gnu.org
Subject: [bug#27851] Update eyed3. ([PATCH 2/2])
Date: Thu, 27 Jul 2017 17:18:58 +0200	[thread overview]
Message-ID: <87a83pdi1p.fsf@thomasdanckaert.be> (raw)
In-Reply-To: <20170727.170446.688232707598375727.post@thomasdanckaert.be> (Thomas Danckaert's message of "Thu, 27 Jul 2017 17:04:46 +0200 (CEST)")

[-- Attachment #1: Type: text/plain, Size: 501 bytes --]

Another patch, another question: eyed3's test suite uses an archive of
mp3 files, at least some of which were not produced by the program
authors (there's even a Cypress Hill cover art file in the archive :-)).
I added the archive as a native input, but have no idea if this is OK.
Can such a native input also end up as a cached substitute on hydra?  In
that case, I think Guix would infringe on the copyright of the artists,
and we'd better just disable the tests.

Your thoughts?

thanks!

Thomas


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0002-gnu-eyed3-Update-to-0.8-build-with-python3.patch --]
[-- Type: text/x-patch, Size: 2758 bytes --]

From 6f207141fbe9af153a930227233756fe34497897 Mon Sep 17 00:00:00 2001
From: Thomas Danckaert <thomas.danckaert@gmail.com>
Date: Thu, 27 Jul 2017 16:47:53 +0200
Subject: [PATCH 2/2] gnu: eyed3: Update to 0.8, build with python3.

* gnu/packages/mp3.scm (eyed3): [source] Update to 0.8.
[arguments]: No longer build with python-2.  Add phase 'unpack-testdata'.
[propagated-inputs]: Add python-six and python-grako.
[native-inputs]: Don't use python2 variants; remove python2-sphinx and
python2-coverage; add python-factory-boy, python-pytest and testdata.
---
 gnu/packages/mp3.scm | 33 +++++++++++++++++++++++++++------
 1 file changed, 27 insertions(+), 6 deletions(-)

diff --git a/gnu/packages/mp3.scm b/gnu/packages/mp3.scm
index 8a3a5809c..36351280c 100644
--- a/gnu/packages/mp3.scm
+++ b/gnu/packages/mp3.scm
@@ -459,7 +459,7 @@ compression format (.mpc files).")
 (define-public eyed3
   (package
     (name "eyed3")
-    (version "0.7.10")
+    (version "0.8")
     (source (origin
              (method url-fetch)
              (uri (string-append
@@ -467,14 +467,35 @@ compression format (.mpc files).")
                   version ".tar.gz"))
              (sha256
               (base32
-               "0wjicszs64ksj2y5jbk09yjd08znc1qnarlq8ssmx13f2d4x59wq"))))
+               "1dcswb0f6w3b05s1v43pq8fmavkd5g88ysndn9160wlaa1v9n40h"))))
     (build-system python-build-system)
     (arguments
-     `(#:python ,python-2))
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-before 'check 'unpack-testdata
+           (lambda* (#:key inputs #:allow-other-keys)
+             (system* "tar" "-xzf"
+                      (assoc-ref inputs "eyed3-testdata")
+                      "--transform" "s/eyeD3-test-data/data/"
+                      "-C" "src/test")
+             #t))
+         (replace 'check
+           (lambda _
+             (zero? (system* "make" "test")))))))
+    (propagated-inputs
+     `(("python-six" ,python-six)
+       ("python-grako" ,python-grako)))
     (native-inputs
-     `(("python2-nose" ,python2-nose)
-       ("python2-sphinx" ,python2-sphinx)
-       ("python2-coverage" ,python2-coverage)))
+     `(("eyed3-testdata"
+        ,(origin
+           (method url-fetch)
+           (uri "http://nicfit.net/files/eyeD3-test-data.tgz")
+           (sha256
+            (base32
+             "1qpwwa343i6zc7j1dadpx395bmfvcn7vr56ncijrn8a72w71kzlb"))))
+       ("python-nose" ,python-nose)
+       ("python-factory-boy" ,python-factory-boy)
+       ("python-pytest" ,python-pytest-3.0)))
     (synopsis "MP3 tag ID3 metadata editor")
     (description "eyeD3 is a Python tool for working with audio files,
 specifically mp3 files containing ID3 metadata (i.e. song info).  It provides a
-- 
2.13.2


  reply	other threads:[~2017-07-27 15:20 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-27 15:04 [bug#27851] Update eyed3. ([PATCH 1/2] gnu: Add python-grako) Thomas Danckaert
2017-07-27 15:18 ` Thomas Danckaert [this message]
2017-07-27 19:35   ` [bug#27851] Update eyed3. ([PATCH 2/2]) Leo Famulari
2017-07-27 19:33 ` [bug#27851] Update eyed3. ([PATCH 1/2] gnu: Add python-grako) Leo Famulari
2017-08-02 12:33   ` bug#27851: " Thomas Danckaert

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87a83pdi1p.fsf@thomasdanckaert.be \
    --to=post@thomasdanckaert.be \
    --cc=27851@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).