1 |
commit: 787170f8964e9031fbb3e4020566265e56430a65 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu May 19 15:04:07 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu May 19 15:23:37 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=787170f8 |
7 |
|
8 |
dev-python/qrcode: Use PEP517 build |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/qrcode/qrcode-7.3.1-r1.ebuild | 39 ++++++++++++++++++++++++++++++++ |
13 |
1 file changed, 39 insertions(+) |
14 |
|
15 |
diff --git a/dev-python/qrcode/qrcode-7.3.1-r1.ebuild b/dev-python/qrcode/qrcode-7.3.1-r1.ebuild |
16 |
new file mode 100644 |
17 |
index 000000000000..12130fa1952d |
18 |
--- /dev/null |
19 |
+++ b/dev-python/qrcode/qrcode-7.3.1-r1.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=( python3_{8..10} ) |
28 |
+ |
29 |
+inherit distutils-r1 |
30 |
+ |
31 |
+DESCRIPTION="QR Code generator on top of PIL" |
32 |
+HOMEPAGE=" |
33 |
+ https://github.com/lincolnloop/python-qrcode/ |
34 |
+ https://pypi.org/project/qrcode/ |
35 |
+" |
36 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
37 |
+ |
38 |
+LICENSE="BSD" |
39 |
+SLOT="0" |
40 |
+KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86" |
41 |
+ |
42 |
+# optional deps: |
43 |
+# - pillow and lxml for svg backend, set as hard deps |
44 |
+RDEPEND=" |
45 |
+ dev-python/lxml[${PYTHON_USEDEP}] |
46 |
+ dev-python/pillow[${PYTHON_USEDEP}] |
47 |
+" |
48 |
+ |
49 |
+distutils_enable_tests pytest |
50 |
+ |
51 |
+EPYTEST_DESELECT=( |
52 |
+ # TODO |
53 |
+ qrcode/tests/test_script.py::ScriptTest::test_factory |
54 |
+) |
55 |
+ |
56 |
+src_install() { |
57 |
+ distutils-r1_src_install |
58 |
+ doman doc/qr.1 |
59 |
+} |