1 |
commit: aa391f7b9bd5d33e6a98591d44542ec1c3434ff6 |
2 |
Author: Sebastian Pipping <sping <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Nov 28 22:39:07 2022 +0000 |
4 |
Commit: Sebastian Pipping <sping <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Nov 28 22:41:00 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aa391f7b |
7 |
|
8 |
dev-python/piexif: Python 3.11 + EAPI 8 + DistutilsNonPEP517Build |
9 |
|
10 |
Signed-off-by: Sebastian Pipping <sping <AT> gentoo.org> |
11 |
|
12 |
dev-python/piexif/piexif-1.1.3-r2.ebuild | 39 ++++++++++++++++++++++++++++++++ |
13 |
1 file changed, 39 insertions(+) |
14 |
|
15 |
diff --git a/dev-python/piexif/piexif-1.1.3-r2.ebuild b/dev-python/piexif/piexif-1.1.3-r2.ebuild |
16 |
new file mode 100644 |
17 |
index 000000000000..44ecb4c39ee1 |
18 |
--- /dev/null |
19 |
+++ b/dev-python/piexif/piexif-1.1.3-r2.ebuild |
20 |
@@ -0,0 +1,39 @@ |
21 |
+# Copyright 1999-2022 Gentoo Authors |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+ |
24 |
+EAPI=8 |
25 |
+ |
26 |
+DISTUTILS_USE_PEP517=setuptools |
27 |
+PYTHON_COMPAT=( pypy3 python3_{8..11} ) |
28 |
+ |
29 |
+inherit edos2unix distutils-r1 |
30 |
+ |
31 |
+DESCRIPTION="Exif manipulation with pure Python" |
32 |
+HOMEPAGE="https://github.com/hMatoba/Piexif |
33 |
+ https://pypi.org/project/piexif/" |
34 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.zip" |
35 |
+ |
36 |
+LICENSE="MIT" |
37 |
+SLOT="0" |
38 |
+KEYWORDS="~amd64 ~riscv ~x86" |
39 |
+IUSE="test" |
40 |
+RESTRICT="!test? ( test )" |
41 |
+ |
42 |
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] |
43 |
+ app-arch/unzip |
44 |
+ test? ( dev-python/pillow[jpeg,${PYTHON_USEDEP}] )" |
45 |
+RDEPEND="" |
46 |
+ |
47 |
+PATCHES=( |
48 |
+ # From https://github.com/hMatoba/Piexif/pull/109 |
49 |
+ "${FILESDIR}"/${P}-tests-pillow-7.2.0.patch |
50 |
+) |
51 |
+ |
52 |
+src_prepare() { |
53 |
+ edos2unix tests/s_test.py # to be able to patch it |
54 |
+ default |
55 |
+} |
56 |
+ |
57 |
+python_test() { |
58 |
+ "${PYTHON}" setup.py test || die |
59 |
+} |