1 |
commit: bda64da21941b0ac017b4a387ad7eea63e6dc83c |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jan 29 15:15:30 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jan 29 15:43:39 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bda64da2 |
7 |
|
8 |
dev-python/jeepney: Switch to PEP 517 build |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/jeepney/jeepney-0.7.1-r1.ebuild | 64 ++++++++++++++++++++++++++++++ |
13 |
1 file changed, 64 insertions(+) |
14 |
|
15 |
diff --git a/dev-python/jeepney/jeepney-0.7.1-r1.ebuild b/dev-python/jeepney/jeepney-0.7.1-r1.ebuild |
16 |
new file mode 100644 |
17 |
index 000000000000..dd4b80cc106e |
18 |
--- /dev/null |
19 |
+++ b/dev-python/jeepney/jeepney-0.7.1-r1.ebuild |
20 |
@@ -0,0 +1,64 @@ |
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=flit |
27 |
+PYTHON_COMPAT=( pypy3 python3_{8..10} ) |
28 |
+ |
29 |
+inherit distutils-r1 |
30 |
+ |
31 |
+DESCRIPTION="Low-level, pure Python DBus protocol wrapper" |
32 |
+HOMEPAGE="https://gitlab.com/takluyver/jeepney" |
33 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
34 |
+ |
35 |
+LICENSE="MIT" |
36 |
+SLOT="0" |
37 |
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86" |
38 |
+IUSE="examples" |
39 |
+ |
40 |
+BDEPEND=" |
41 |
+ test? ( |
42 |
+ dev-python/async_timeout[${PYTHON_USEDEP}] |
43 |
+ dev-python/pytest-asyncio[${PYTHON_USEDEP}] |
44 |
+ dev-python/testpath[${PYTHON_USEDEP}] |
45 |
+ sys-apps/dbus |
46 |
+ $(python_gen_cond_dep ' |
47 |
+ dev-python/pytest-trio[${PYTHON_USEDEP}] |
48 |
+ dev-python/trio[${PYTHON_USEDEP}] |
49 |
+ ' 'python3*') |
50 |
+ ) |
51 |
+" |
52 |
+ |
53 |
+distutils_enable_tests pytest |
54 |
+ |
55 |
+distutils_enable_sphinx docs \ |
56 |
+ dev-python/sphinx_rtd_theme |
57 |
+ |
58 |
+src_test() { |
59 |
+ local dbus_params=( |
60 |
+ $(dbus-daemon --session --print-address --fork --print-pid) |
61 |
+ ) |
62 |
+ local -x DBUS_SESSION_BUS_ADDRESS=${dbus_params[0]} |
63 |
+ |
64 |
+ distutils-r1_src_test |
65 |
+ |
66 |
+ kill "${dbus_params[1]}" || die |
67 |
+} |
68 |
+ |
69 |
+python_test() { |
70 |
+ local EPYTEST_IGNORE=() |
71 |
+ # keep in sync with python_gen_cond_dep! |
72 |
+ if [[ ${EPYTHON} != python3* ]]; then |
73 |
+ EPYTEST_IGNORE+=( jeepney/io/tests/test_trio.py ) |
74 |
+ fi |
75 |
+ epytest |
76 |
+} |
77 |
+ |
78 |
+python_install_all() { |
79 |
+ if use examples; then |
80 |
+ docompress -x "/usr/share/doc/${PF}/examples" |
81 |
+ dodoc -r examples |
82 |
+ fi |
83 |
+ distutils-r1_python_install_all |
84 |
+} |