diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-06-29 12:04:12 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-06-29 12:04:12 +0100 |
commit | 0f558761aa2dee1017b4751e4017205e015a9560 (patch) | |
tree | 037df795519468a25d9362b4e95cdaeb84eb1cf9 /dev-python/dbus-next/dbus-next-0.2.3-r1.ebuild | |
parent | 752d6256e5204b958b0ef7905675a940b5e9172f (diff) |
gentoo resync : 29.12.2022
Diffstat (limited to 'dev-python/dbus-next/dbus-next-0.2.3-r1.ebuild')
-rw-r--r-- | dev-python/dbus-next/dbus-next-0.2.3-r1.ebuild | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/dev-python/dbus-next/dbus-next-0.2.3-r1.ebuild b/dev-python/dbus-next/dbus-next-0.2.3-r1.ebuild new file mode 100644 index 000000000000..a5d78a017665 --- /dev/null +++ b/dev-python/dbus-next/dbus-next-0.2.3-r1.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8..11} ) + +inherit distutils-r1 virtualx + +DESCRIPTION="The next great DBus library for Python with asyncio support" +HOMEPAGE=" + https://python-dbus-next.readthedocs.io/en/latest/ + https://github.com/altdesktop/python-dbus-next/ + https://pypi.org/project/dbus-next/ +" +SRC_URI=" + https://github.com/altdesktop/python-dbus-next/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" +S="${WORKDIR}"/python-${P} + +LICENSE="MIT" +SLOT="0" +KEYWORDS="amd64 ~riscv ~x86" + +BDEPEND=" + test? ( + dev-python/pygobject[${PYTHON_USEDEP}] + dev-python/pytest-asyncio[${PYTHON_USEDEP}] + dev-python/pytest-timeout[${PYTHON_USEDEP}] + ) +" + +PATCHES=( + "${FILESDIR}"/${PN}-0.2.3-glib-crash.patch +) + +EPYTEST_IGNORE=( + # "interface not found on this object: org.freedesktop.DBus.Debug.Stats" + # Seems like we build dbus w/o this? + test/client/test_signals.py +) + +distutils_enable_tests pytest + +src_test() { + local dbus_params=( + $(dbus-daemon --session --print-address --fork --print-pid) + ) + local -x DBUS_SESSION_BUS_ADDRESS=${dbus_params[0]} + + virtx distutils-r1_src_test + + kill "${dbus_params[1]}" || die +} |