1 |
commit: 05ecee77251b8b9b3151e26c7358ebae6301e5f5 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu May 19 14:38:15 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu May 19 15:23:35 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=05ecee77 |
7 |
|
8 |
dev-python/pyqrcode: Use PEP517 build |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/pyqrcode/pyqrcode-1.2.1-r2.ebuild | 45 ++++++++++++++++++++++++++++ |
13 |
1 file changed, 45 insertions(+) |
14 |
|
15 |
diff --git a/dev-python/pyqrcode/pyqrcode-1.2.1-r2.ebuild b/dev-python/pyqrcode/pyqrcode-1.2.1-r2.ebuild |
16 |
new file mode 100644 |
17 |
index 000000000000..65df390ebff9 |
18 |
--- /dev/null |
19 |
+++ b/dev-python/pyqrcode/pyqrcode-1.2.1-r2.ebuild |
20 |
@@ -0,0 +1,45 @@ |
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 |
+# upstream doesn't do tags |
32 |
+EGIT_COMMIT="674a77b5eaf850d063f518bd90c243ee34ad6b5d" |
33 |
+ |
34 |
+DESCRIPTION="A pure Python QR code generator with SVG, EPS, PNG and terminal output" |
35 |
+HOMEPAGE=" |
36 |
+ https://github.com/mnooner256/pyqrcode/ |
37 |
+ https://pypi.org/project/PyQRCode/ |
38 |
+" |
39 |
+SRC_URI=" |
40 |
+ https://github.com/mnooner256/pyqrcode/archive/${EGIT_COMMIT}.tar.gz |
41 |
+ -> ${P}.gh.tar.gz |
42 |
+" |
43 |
+S=${WORKDIR}/${PN}-${EGIT_COMMIT} |
44 |
+ |
45 |
+LICENSE="BSD" |
46 |
+SLOT="0" |
47 |
+KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86 ~amd64-linux ~x86-linux" |
48 |
+IUSE="png" |
49 |
+ |
50 |
+RDEPEND=" |
51 |
+ png? ( dev-python/pypng[${PYTHON_USEDEP}] ) |
52 |
+" |
53 |
+BDEPEND=" |
54 |
+ test? ( dev-python/pypng[${PYTHON_USEDEP}] ) |
55 |
+" |
56 |
+ |
57 |
+distutils_enable_tests nose |
58 |
+ |
59 |
+src_prepare() { |
60 |
+ # don't pull in tkinter for one test |
61 |
+ sed -i -e 's:test_xbm_with_tkinter:_&:' \ |
62 |
+ tests/test_xbm.py || die |
63 |
+ |
64 |
+ distutils-r1_src_prepare |
65 |
+} |