summary refs log tree commit diff
path: root/pkgs/tools/audio/beets/keyfinder-default-bin.patch
diff options
context:
space:
mode:
authoraszlig <aszlig@redmoonstudios.org>2016-11-28 08:52:26 +0100
committeraszlig <aszlig@redmoonstudios.org>2016-11-28 08:58:08 +0100
commit83410d9954ff9ce27023b66c86c05ace38a0c6e5 (patch)
treee8ed65d0e5b91bb7e8feb01704a4a7cd3723d64d /pkgs/tools/audio/beets/keyfinder-default-bin.patch
parentd1055c0ed763286ec991a0caf286769f0bb3466e (diff)
downloadnixpkgs-83410d9954ff9ce27023b66c86c05ace38a0c6e5.tar
nixpkgs-83410d9954ff9ce27023b66c86c05ace38a0c6e5.tar.gz
nixpkgs-83410d9954ff9ce27023b66c86c05ace38a0c6e5.tar.bz2
nixpkgs-83410d9954ff9ce27023b66c86c05ace38a0c6e5.tar.lz
nixpkgs-83410d9954ff9ce27023b66c86c05ace38a0c6e5.tar.xz
nixpkgs-83410d9954ff9ce27023b66c86c05ace38a0c6e5.tar.zst
nixpkgs-83410d9954ff9ce27023b66c86c05ace38a0c6e5.zip
beets: 1.3.19 -> 1.4.1
Full upstream release announcement:

https://github.com/beetbox/beets/releases/tag/v1.4.1

I had to rebase the keyfinder-default-bin.patch in order to apply with
the new release.

Other than that I didn't test whether beets works on my machine, as I
have a more or less temporary setup at the moment.

However, since the bump of mutagen to version 1.34 in commit
555928c228634b4c372f38e6ea5c320c1662711b, the mediafile tests fail and
thus this commit unbreaks beets.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'pkgs/tools/audio/beets/keyfinder-default-bin.patch')
-rw-r--r--pkgs/tools/audio/beets/keyfinder-default-bin.patch21
1 files changed, 11 insertions, 10 deletions
diff --git a/pkgs/tools/audio/beets/keyfinder-default-bin.patch b/pkgs/tools/audio/beets/keyfinder-default-bin.patch
index b0b573bbf31..1ea195a678e 100644
--- a/pkgs/tools/audio/beets/keyfinder-default-bin.patch
+++ b/pkgs/tools/audio/beets/keyfinder-default-bin.patch
@@ -1,5 +1,5 @@
 diff --git a/beetsplug/keyfinder.py b/beetsplug/keyfinder.py
-index b6131a4..b493792 100644
+index 34a4abc..59e8539 100644
 --- a/beetsplug/keyfinder.py
 +++ b/beetsplug/keyfinder.py
 @@ -30,7 +30,7 @@ class KeyFinderPlugin(BeetsPlugin):
@@ -11,25 +11,26 @@ index b6131a4..b493792 100644
              u'auto': True,
              u'overwrite': False,
          })
-@@ -59,7 +59,7 @@ class KeyFinderPlugin(BeetsPlugin):
+@@ -59,8 +59,7 @@ class KeyFinderPlugin(BeetsPlugin):
                  continue
  
              try:
--                output = util.command_output([bin, b'-f',
-+                output = util.command_output([bin,
-                                               util.syspath(item.path)])
+-                output = util.command_output([bin, '-f',
+-                                              util.syspath(item.path)])
++                output = util.command_output([bin, util.syspath(item.path)])
              except (subprocess.CalledProcessError, OSError) as exc:
                  self._log.error(u'execution failed: {0}', exc)
+                 continue
 diff --git a/test/test_keyfinder.py b/test/test_keyfinder.py
-index 00952fe..01ff8d4 100644
+index 57e2bcd..c1ee916 100644
 --- a/test/test_keyfinder.py
 +++ b/test/test_keyfinder.py
-@@ -46,7 +46,7 @@ class KeyFinderTest(unittest.TestCase, TestHelper):
+@@ -44,7 +44,7 @@ class KeyFinderTest(unittest.TestCase, TestHelper):
          item.load()
          self.assertEqual(item['initial_key'], 'C#m')
-         self.command_output.assert_called_with(
+         command_output.assert_called_with(
 -            ['KeyFinder', '-f', util.syspath(item.path)])
 +            ['keyfinder-cli', util.syspath(item.path)])
  
-     def test_add_key_on_import(self):
-         self.command_output.return_value = 'dbm'
+     def test_add_key_on_import(self, command_output):
+         command_output.return_value = 'dbm'