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/dbus-next/
Date: Thu, 19 May 2022 01:09:34
Message-Id: 1652922559.5bac27d308f715dc38fffedc2318e9fddb0a3ba4.sam@gentoo
1 commit: 5bac27d308f715dc38fffedc2318e9fddb0a3ba4
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Thu May 19 00:29:57 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Thu May 19 01:09:19 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5bac27d3
7
8 dev-python/dbus-next: new package, add 0.2.3
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 dev-python/dbus-next/Manifest | 1 +
13 dev-python/dbus-next/dbus-next-0.2.3.ebuild | 42 +++++++++++++++++++++++++++++
14 dev-python/dbus-next/metadata.xml | 12 +++++++++
15 3 files changed, 55 insertions(+)
16
17 diff --git a/dev-python/dbus-next/Manifest b/dev-python/dbus-next/Manifest
18 new file mode 100644
19 index 000000000000..1695fd2e9bea
20 --- /dev/null
21 +++ b/dev-python/dbus-next/Manifest
22 @@ -0,0 +1 @@
23 +DIST dbus-next-0.2.3.tar.gz 81711 BLAKE2B 6acc38a05511b3de7e13893d82dd1ecd55f9a6124b4d859574294602b921ff012776c12ddb02e1be437b258c7bd5120a3a9625fc5b06bbbe02915dcc4c14897b SHA512 7836d855c755c8ac6cbbb251ca0cbd2f4df9b573f31b1ea1cab480e47896d36b4cb0d479b2469b0bf0b5c700068361a18874b4a087f73020cdcb4e04a2d7dbe7
24
25 diff --git a/dev-python/dbus-next/dbus-next-0.2.3.ebuild b/dev-python/dbus-next/dbus-next-0.2.3.ebuild
26 new file mode 100644
27 index 000000000000..6e7d9b789770
28 --- /dev/null
29 +++ b/dev-python/dbus-next/dbus-next-0.2.3.ebuild
30 @@ -0,0 +1,42 @@
31 +# Copyright 1999-2022 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=8
35 +
36 +DISTUTILS_USE_PEP517=setuptools
37 +PYTHON_COMPAT=( python3_{8..10} )
38 +inherit distutils-r1 virtualx
39 +
40 +DESCRIPTION="The next great DBus library for Python with asyncio support"
41 +HOMEPAGE="https://python-dbus-next.readthedocs.io/en/latest/"
42 +SRC_URI="https://github.com/altdesktop/python-dbus-next/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
43 +S="${WORKDIR}"/python-${P}
44 +
45 +LICENSE="MIT"
46 +SLOT="0"
47 +KEYWORDS="~amd64"
48 +
49 +BDEPEND="test? (
50 + dev-python/pygobject[${PYTHON_USEDEP}]
51 + dev-python/pytest-asyncio[${PYTHON_USEDEP}]
52 + dev-python/pytest-timeout[${PYTHON_USEDEP}]
53 + )"
54 +
55 +EPYTEST_IGNORE=(
56 + # "interface not found on this object: org.freedesktop.DBus.Debug.Stats"
57 + # Seems like we build dbus w/o this?
58 + test/client/test_signals.py
59 +)
60 +
61 +distutils_enable_tests pytest
62 +
63 +src_test() {
64 + local dbus_params=(
65 + $(dbus-daemon --session --print-address --fork --print-pid)
66 + )
67 + local -x DBUS_SESSION_BUS_ADDRESS=${dbus_params[0]}
68 +
69 + virtx distutils-r1_src_test
70 +
71 + kill "${dbus_params[1]}" || die
72 +}
73
74 diff --git a/dev-python/dbus-next/metadata.xml b/dev-python/dbus-next/metadata.xml
75 new file mode 100644
76 index 000000000000..4c10a1f049b6
77 --- /dev/null
78 +++ b/dev-python/dbus-next/metadata.xml
79 @@ -0,0 +1,12 @@
80 +<?xml version="1.0" encoding="UTF-8"?>
81 +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
82 +<pkgmetadata>
83 + <maintainer type="project">
84 + <email>python@g.o</email>
85 + <name>Python</name>
86 + </maintainer>
87 + <upstream>
88 + <remote-id type="github">altdesktop/python-dbus-next</remote-id>
89 + <remote-id type="pypi">dbus-next</remote-id>
90 + </upstream>
91 +</pkgmetadata>