summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2020-08-09 14:42:47 +0200
committerMichał Górny <mgorny@gentoo.org>2020-08-09 15:09:37 +0200
commit0628ee5f474db42a56655ad2e5143e21392b56a0 (patch)
tree3ef1be7af30219501ff07c6ac351d2f9e6f5c384 /dev-python/eyeD3
parentdev-python/pylast: Bump to 3.3.0 (diff)
downloadgentoo-0628ee5f474db42a56655ad2e5143e21392b56a0.tar.gz
gentoo-0628ee5f474db42a56655ad2e5143e21392b56a0.tar.bz2
gentoo-0628ee5f474db42a56655ad2e5143e21392b56a0.zip
dev-python/eyeD3: Bump to 0.9.5, enable tests
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/eyeD3')
-rw-r--r--dev-python/eyeD3/Manifest2
-rw-r--r--dev-python/eyeD3/eyeD3-0.9.5.ebuild46
2 files changed, 48 insertions, 0 deletions
diff --git a/dev-python/eyeD3/Manifest b/dev-python/eyeD3/Manifest
index 90403397d3c4..6118e2465d78 100644
--- a/dev-python/eyeD3/Manifest
+++ b/dev-python/eyeD3/Manifest
@@ -1 +1,3 @@
DIST eyeD3-0.8.11.tar.gz 215807 BLAKE2B e289a274198a4adceb0ec3b77a5c79f50faaa320edecdf07d1d2af3b5519f0c884c8cef146b124fd172d74626f70af2b689dd536ade1a68ed27fedff840513ee SHA512 ed147fbe6ce88319cdbfc752e1ddbcb141180bdd87854c209c621956bc52395c5ba442d929016419620c0b230f5b8a3e1fa638b73c7cf329405425148f953c9c
+DIST eyeD3-0.9.5.tar.gz 222657 BLAKE2B 3932c1b07e0961773a1cccaebec116c3b51a8c4560850661e8725efb3f4c5716b43ba610e35a2682f94b0e3b72513fbf108ffbc8c436a52977c308ad82e59400 SHA512 be89a2070b8cd5d70b25ff24e508c35e4e0ad20bfbe7bc91e4119614c1359cbc7a4ba812066b608f310abfd027d34b7bfa13f9dae8f3ab54f3ecfc9ce47c07e4
+DIST eyeD3-test-data.tgz 97281754 BLAKE2B 9b667a5f8be157ace06d773d575c08f4a8e8b7a7b81ba9cb39b1e2c924b2e3f98597607ed3076b13150e02ef7768e89d1ff8a9913021e5f4b9ac6b59344ed397 SHA512 937971dcefc53812c59adb97df27d200e92de04e12391c735ab85cd547e2a168aa1212d88c206ec71ac2fa85a504a9faa91dcc444b45149aca7c8f3a794e9a95
diff --git a/dev-python/eyeD3/eyeD3-0.9.5.ebuild b/dev-python/eyeD3/eyeD3-0.9.5.ebuild
new file mode 100644
index 000000000000..e5f39d7812de
--- /dev/null
+++ b/dev-python/eyeD3/eyeD3-0.9.5.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DISTUTILS_USE_SETUPTOOLS=rdepend
+PYTHON_COMPAT=( python3_7 )
+
+inherit distutils-r1
+
+DESCRIPTION="Module for manipulating ID3 (v1 + v2) tags in Python"
+HOMEPAGE="https://eyed3.nicfit.net/"
+SRC_URI="https://github.com/nicfit/eyeD3/archive/v${PV}.tar.gz -> ${P}.tar.gz
+ test? ( https://eyed3.nicfit.net/releases/eyeD3-test-data.tgz )"
+
+LICENSE="GPL-2"
+SLOT="0.7"
+KEYWORDS="~amd64"
+
+RDEPEND="
+ dev-python/deprecation[${PYTHON_USEDEP}]
+ dev-python/filetype[${PYTHON_USEDEP}]"
+# note: most of the deps are optional runtime deps / plugin deps
+BDEPEND="
+ test? (
+ dev-python/pillow[${PYTHON_USEDEP}]
+ dev-python/pylast[${PYTHON_USEDEP}]
+ dev-python/ruamel-yaml[${PYTHON_USEDEP}]
+ dev-python/six[${PYTHON_USEDEP}]
+ )"
+
+distutils_enable_tests pytest
+
+src_prepare() {
+ # requires unpackaged factory-boy, doesn't seem to relevant
+ # to anything but eyeD3 usage with factory-boy
+ rm test/test_factory.py || die
+ # requires unpackaged grako
+ rm test/test_display_plugin.py || die
+
+ if use test; then
+ mv "${WORKDIR}"/eyeD3-test-data test/data || die
+ fi
+
+ distutils-r1_src_prepare
+}