Skip to content

Commit

Permalink
beets: Fix test to work with mutagen>=1.43
Browse files Browse the repository at this point in the history
  • Loading branch information
AluisioASG authored and Jon committed Feb 15, 2020
1 parent 316db29 commit e79af47
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkgs/tools/audio/beets/default.nix
Expand Up @@ -177,6 +177,7 @@ in pythonPackages.buildPythonApplication rec {
patches = [
./replaygain-default-bs1770gain.patch
./keyfinder-default-bin.patch
./mutagen-1.43.patch
];

postPatch = ''
Expand Down
29 changes: 29 additions & 0 deletions pkgs/tools/audio/beets/mutagen-1.43.patch
@@ -0,0 +1,29 @@
Backport https://github.com/beetbox/mediafile/commit/b3343c4ee08d1251ae5e2344401a2f5892b4e868
to Beets 1.4.9.

diff --git i/setup.py w/setup.py
index 79278f8..b8d6068 100755
--- i/setup.py
+++ w/setup.py
@@ -87,7 +87,7 @@ setup(

install_requires=[
'six>=1.9',
- 'mutagen>=1.33',
+ 'mutagen>=1.43',
'unidecode',
'musicbrainzngs>=0.4',
'pyyaml',
diff --git i/test/test_mediafile.py w/test/test_mediafile.py
index 36a2c53..54ef9dd 100644
--- i/test/test_mediafile.py
+++ w/test/test_mediafile.py
@@ -912,7 +912,7 @@ class AIFFTest(ReadWriteTestBase, unittest.TestCase):
'bitrate': 705600,
'format': u'AIFF',
'samplerate': 44100,
- 'bitdepth': 0,
+ 'bitdepth': 16,
'channels': 1,
}

0 comments on commit e79af47

Please sign in to comment.