Skip to contentSkip to conversation

python-mutagen: new package

PATCH Superseded Adam Duskett 3 participants 3 messages Jan 8, 2017

v2 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 python-mutagen: new package

Mutagen is a Python module to handle audio metadata.
It supports ASF, FLAC, MP4, Monkey?s Audio, MP3, Musepack, Ogg Opus, Ogg FLAC, Ogg Speex, Ogg Theora, Ogg Vorbis, True Audio, WavPack, OptimFROG, and AIFF audio files. All versions of ID3v2 are supported, and all standard ID3v2.4 frames are parsed.

It can read Xing headers to accurately calculate the bitrate and length of MP3s. ID3 and APEv2 tags can be edited regardless of audio format. It can also manipulate Ogg streams on an individual packet/page level.

Mutagen works with Python 2.7, 3.3+ (CPython and PyPy) on Linux, Windows and macOS, and has no dedependencies outside the Python standard library.

---
Changes V1 -> V2:
- Added BR2_PACKAGE_PYTHON_ZLIB as a requirement. Without this dependency, programs using python-mutagen will fail to load with a import error complaining about not being able to find zlib in python.

 package/Config.in                          |  1 +
 package/python-mutagen/Config.in           |  9 +++++++++
 package/python-mutagen/python-mutagen.hash |  3 +++
 package/python-mutagen/python-mutagen.mk   | 14 ++++++++++++++
 4 files changed, 27 insertions(+)
 create mode 100644 package/python-mutagen/Config.in
 create mode 100644 package/python-mutagen/python-mutagen.hash
 create mode 100644 package/python-mutagen/python-mutagen.mk
package/Config.in +1 -0
index 341c77c..957c721 100644
@@ -714,6 +714,7 @@ menu "External python modules"
 	source "package/python-meld3/Config.in"
 	source "package/python-mistune/Config.in"
 	source "package/python-msgpack/Config.in"
+	source "package/python-mutagen/Config.in"
 	source "package/python-mwclient/Config.in"
 	source "package/python-mwscrape/Config.in"
 	source "package/python-mwscrape2slob/Config.in"
package/python-mutagen/Config.in new file +9 -0
new file mode 100644
index 0000000..9d864ae
@@ -0,0 +1,9 @@
+config BR2_PACKAGE_PYTHON_MUTAGEN
+	bool "python-mutagen"
+	select BR2_PACKAGE_PYTHON_PYEXPAT if BR2_PACKAGE_PYTHON # runtime
+	select BR2_PACKAGE_PYTHON3_PYEXPAT if BR2_PACKAGE_PYTHON3 # runtime
+	select BR2_PACKAGE_PYTHON_ZLIB
+	help
+	  read and write audio tags for many formats
+
+	  https://mutagen.readthedocs.io/en/latest/#
package/python-mutagen/python-mutagen.hash new file +3 -0
new file mode 100644
index 0000000..8970a23
@@ -0,0 +1,3 @@
+# md5 from https://pypi.python.org/pypi/mutagen, sha256 locally computed
+md5	2bd50519d64411626fa22d405afbf078  mutagen-1.36.tar.gz
+sha256	d7ee37e33b8c5893c3ebf66edac31241eb9d48e1dc7ec647bbfbc180565a4bcd  mutagen-1.36.tar.gz
package/python-mutagen/python-mutagen.mk new file +14 -0
new file mode 100644
index 0000000..b8c37d3
@@ -0,0 +1,14 @@
+################################################################################
+#
+# python-mutagen
+#
+################################################################################
+
+PYTHON_MUTAGEN_VERSION = 1.36
+PYTHON_MUTAGEN_SOURCE = mutagen-$(PYTHON_MUTAGEN_VERSION).tar.gz
+PYTHON_MUTAGEN_SITE = https://pypi.python.org/packages/69/14/4a5c8360a727563291a7159de935ffff2b99ee783928169f0fea7445370f
+PYTHON_MUTAGEN_LICENSE = LGPLv3+
+PYTHON_MUTAGEN_LICENSE_FILES = COPYING.LESSER
+PYTHON_MUTAGEN_SETUP_TYPE = distutils
+
+$(eval $(python-package))
Signature · 1 line
2.9.3
#1 lore raw

PATCH v2 1/1 python-mutagen: new package

Hi Adam,

package/python-mutagen/Config.in line 5

Quoted 12 lines · Adam Duskett
package/python-mutagen/Config.in new file +5 -0
new file mode 100644
index 0000000..9d864ae
@@ -0,0 +1,9 @@
+config BR2_PACKAGE_PYTHON_MUTAGEN
+	bool "python-mutagen"
+	select BR2_PACKAGE_PYTHON_PYEXPAT if BR2_PACKAGE_PYTHON # runtime
+	select BR2_PACKAGE_PYTHON3_PYEXPAT if BR2_PACKAGE_PYTHON3 # runtime
+	select BR2_PACKAGE_PYTHON_ZLIB

Is that a runtime dependency?

baruch

Signature · 3 lines
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -
#2 lore raw

PATCH v2 1/1 python-mutagen: new package

Quoted 17 lines · Baruch Siach

Hi Adam,

package/python-mutagen/Config.in line 5

Quoted 12 lines · Adam Duskett
package/python-mutagen/Config.in new file +5 -0
new file mode 100644
index 0000000..9d864ae
@@ -0,0 +1,9 @@
+config BR2_PACKAGE_PYTHON_MUTAGEN
+     bool "python-mutagen"
+     select BR2_PACKAGE_PYTHON_PYEXPAT if BR2_PACKAGE_PYTHON # runtime
+     select BR2_PACKAGE_PYTHON3_PYEXPAT if BR2_PACKAGE_PYTHON3 # runtime
+     select BR2_PACKAGE_PYTHON_ZLIB

Is that a runtime dependency?

And the other question is, if BR2_PACKAGE_PYTHON3_ZLIB is needed too.

Yegor