Package Details: python-mediafile 0.3.0-1

Git Clone URL: https://aur.archlinux.org/python-mediafile.git (read-only, click to copy)
Package Base: python-mediafile
Description: Simple interface to the metadata tags for many audio file formats
Upstream URL: https://github.com/beetbox/mediafile
Licenses: MIT
Submitter: Freso
Maintainer: Freso
Last Packager: Freso
Votes: 1
Popularity: 0.001062
First Submitted: 2019-06-01 19:14
Last Updated: 2019-12-13 22:20

Latest Comments

dmp1ce commented on 2020-07-28 02:03

I'm getting a similar error as before from a test. I'll created an issue here: https://github.com/beetbox/mediafile/issues/34

~/python-mediafile/src/python3 ~/python-mediafile/src ~/python-mediafile/src
..............................................................................................................................................................................................................................................................................................................................................................................F.....................................................................
======================================================================
FAIL: test_read_audio_properties (test.test_mediafile.WavpackTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build/python-mediafile/src/python3/test/test_mediafile.py", line 442, in test_read_audio_properties
    self.assertEqual(getattr(mediafile, key), value)
AssertionError: 16 != 0

----------------------------------------------------------------------
Ran 436 tests in 0.983s

Here were my changes to the PKGBUILD to get things building again.

diff --git a/PKGBUILD b/PKGBUILD
index f8da925..ed57562 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
 pkgbase=python-mediafile
 _name=${pkgbase#python-}
 pkgname=($pkgbase ${pkgbase/python-/python2-})
-pkgver=0.3.0
+pkgver=0.5.0
 pkgrel=1
 pkgdesc='Simple interface to the metadata tags for many audio file formats'
 url="https://github.com/beetbox/$_name"
@@ -13,13 +13,17 @@ makedepends=('python-setuptools' 'python2-setuptools')
 checkdepends=('python-nose' 'python-six' 'python-mutagen'
               'python2-nose' 'python2-six' 'python2-mutagen' 'python2-enum34')
 source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz"
-        "$_name-$pkgver-LICENSE::$url/raw/v$pkgver/LICENSE")
-sha256sums=('7cbdb67907e65089c81d304002c8404798b630e609796b291503d0853edcc0da'
-            '0b308ae66aaa1412ebbe645bec4002fd262d91e9cdf67b6f198026677ddfafcc')
+        "$_name-$pkgver-LICENSE::$url/raw/v$pkgver/LICENSE"
+        "test-fix-34.patch")
+sha256sums=('da19794e5ca6982aabc2e0b278151ddfad3387675fdd9efe82233560c9de7893'
+            '0b308ae66aaa1412ebbe645bec4002fd262d91e9cdf67b6f198026677ddfafcc'
+            'a1cd2f7f5cb0a25c35a2cf8ec06f42c040c77b655144efd822631bf0297f4278')

 prepare() {
   cp -a $_name-$pkgver python2
   mv $_name-$pkgver python3
+
+  patch -p1 -d python3 < test-fix-34.patch
 }

 build() {
diff --git a/test-fix-34.patch b/test-fix-34.patch
new file mode 100644
index 0000000..fbbb888
--- /dev/null
+++ b/test-fix-34.patch
@@ -0,0 +1,13 @@
+diff --git a/test/test_mediafile.py b/test/test_mediafile.py
+index e9e1850..7f17f44 100644
+--- a/test/test_mediafile.py
++++ b/test/test_mediafile.py
+@@ -907,7 +907,7 @@ class WavpackTest(ReadWriteTestBase, unittest.TestCase):
+         'bitrate': 109312,
+         'format': u'WavPack',
+         'samplerate': 44100,
+-        'bitdepth': 0,
++        'bitdepth': 16,
+         'channels': 1,
+     }
+ 

apetresc commented on 2019-12-06 20:49

@FichteFoll is right, it's broken for everyone right now. The latest version just released an hour ago fixes it.

FichteFoll commented on 2019-11-22 13:22

Checks fail for me

==> Starting check()...
~/python-mediafile/src/python3 ~/python-mediafile/src ~/python-mediafile/src
.........F........................................................................................................................................................................................................................................................................................................................................................................................................................................
======================================================================
FAIL: test_read_audio_properties (test.test_mediafile.AIFFTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build/python-mediafile/src/python3/test/test_mediafile.py", line 441, in test_read_audio_properties
    self.assertEqual(getattr(mediafile, key), value)
AssertionError: 16 != 0

----------------------------------------------------------------------
Ran 434 tests in 0.803s

FAILED (failures=1)
==> ERROR: A failure occurred in check().

FichteFoll commented on 2019-07-22 13:04

Needs mutagen as a checkdep.