Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/eyeD3/
Date: Tue, 31 May 2022 10:20:25
Message-Id: 1653992050.f27b938cac7e3d14d802072a646b90c7453a2cb4.sam@gentoo
1 commit: f27b938cac7e3d14d802072a646b90c7453a2cb4
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Tue May 31 10:12:58 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Tue May 31 10:14:10 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f27b938c
7
8 dev-python/eyeD3: add Python 3.11
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 dev-python/eyeD3/eyeD3-0.9.6-r1.ebuild | 48 ++++++++++++++++++++++++++++++++++
13 1 file changed, 48 insertions(+)
14
15 diff --git a/dev-python/eyeD3/eyeD3-0.9.6-r1.ebuild b/dev-python/eyeD3/eyeD3-0.9.6-r1.ebuild
16 new file mode 100644
17 index 000000000000..a29cbbbf2096
18 --- /dev/null
19 +++ b/dev-python/eyeD3/eyeD3-0.9.6-r1.ebuild
20 @@ -0,0 +1,48 @@
21 +# Copyright 1999-2022 Gentoo Authors
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=7
25 +
26 +PYTHON_COMPAT=( python3_{8..11} )
27 +
28 +inherit distutils-r1
29 +
30 +DESCRIPTION="Module for manipulating ID3 (v1 + v2) tags in Python"
31 +HOMEPAGE="https://eyed3.nicfit.net/"
32 +SRC_URI="https://github.com/nicfit/eyeD3/archive/v${PV}.tar.gz -> ${P}.tar.gz
33 + test? ( https://eyed3.nicfit.net/releases/eyeD3-test-data.tgz )"
34 +
35 +LICENSE="GPL-2"
36 +SLOT="0.7"
37 +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
38 +
39 +RDEPEND="
40 + dev-python/deprecation[${PYTHON_USEDEP}]
41 + dev-python/filetype[${PYTHON_USEDEP}]
42 + || (
43 + dev-python/ruamel-yaml[${PYTHON_USEDEP}]
44 + dev-python/pyyaml[${PYTHON_USEDEP}]
45 + )"
46 +# note: most of the deps are optional runtime deps / plugin deps
47 +BDEPEND="
48 + test? (
49 + dev-python/pillow[${PYTHON_USEDEP}]
50 + dev-python/pylast[${PYTHON_USEDEP}]
51 + dev-python/six[${PYTHON_USEDEP}]
52 + )"
53 +
54 +distutils_enable_tests pytest
55 +
56 +src_prepare() {
57 + # requires unpackaged factory-boy, doesn't seem to relevant
58 + # to anything but eyeD3 usage with factory-boy
59 + rm tests/test_factory.py || die
60 + # requires unpackaged grako
61 + rm tests/test_display_plugin.py || die
62 +
63 + if use test; then
64 + mv "${WORKDIR}"/eyeD3-test-data tests/data || die
65 + fi
66 +
67 + distutils-r1_src_prepare
68 +}