| Name |
python-dbus |
| Description |
Python bindings for D-Bus |
| Version |
1.4.0-2 |
| Package Base |
dbus-python |
| Homepage |
https://www.freedesktop.org/wiki/Software/dbus/ |
| Maintainers |
['Antonio Rojas <arojas@archlinux.org>', 'Balló György <ballogyor+arch@gmail.com>'] |
| Contributors |
['Jan de Groot <jgc@archlinux.org>'] |
| Distro-repo |
https://gitlab.archlinux.org/archlinux/packaging/packages/dbus-python |
| Sources |
['git+https://gitlab.freedesktop.org/dbus/dbus-python.git?signed#tag=dbus-python-1.4.0'] |
| Dependencies |
['dbus', 'glib2', 'glibc', 'python'] |
| Optional-Dependencies |
['python-gobject'] |
| Build-Dependencies |
['git', 'meson', 'python-gobject', 'python-pyproject-metadata', 'python-sphinx', 'python-sphinx_rtd_theme', 'python-sphinxcontrib-jquery', 'python-tomli'] |
| Provides |
['dbus-python', 'python-dbus-common'] |
| Builddate |
16-12-2025 12:16:57 |
| Architecture |
x86_64 |
| Distro-Version |
|
| Licenses |
['MIT'] |
| Hash |
7f1a7a1d5f3cfb5747defcda3b535839a97a3a9977f25cc4e75ed7afc6bfeb04 |
# Maintainer: Balló György <ballogyor+arch at gmail dot com>
# Contributor: Jan de Groot <jgc@archlinux.org>
pkgbase=dbus-python
pkgname=(
python-dbus
python-dbus-docs
)
pkgver=1.4.0
pkgrel=2
pkgdesc='Python bindings for D-Bus'
arch=(x86_64)
url='https://www.freedesktop.org/wiki/Software/dbus/'
license=(MIT)
depends=(
dbus
glib2
glibc
python
)
makedepends=(
git
meson
python-gobject
python-pyproject-metadata
python-sphinx
python-sphinx_rtd_theme
python-sphinxcontrib-jquery
python-tomli
)
optdepends=('python-gobject: D-Bus services via PyGI')
source=("git+https://gitlab.freedesktop.org/dbus/$pkgbase.git?signed#tag=$pkgbase-$pkgver")
b2sums=(4c00d07dd483748243eb8e4bb7fbf9eba29b1e039c5ee9dd1ac3b3adab9a64290e617b40155269898ef5ac389ca6893ab16ec5237b23e9e8d21cdf41d4e0f267)
validpgpkeys=(DA98F25C0871C49A59EAFF2C4DE8FF2A63C7CC90) # Simon McVittie <smcv@pseudorandom.co.uk>
build() {
arch-meson $pkgbase build \
-D doc=true
meson compile -C build
# Generate egg-info
python "$pkgbase/tools/generate-pkginfo.py" $pkgver PKG-INFO
}
check() {
meson test -C build --print-errorlogs
}
package_python-dbus() {
conflicts=(
dbus-python
python-dbus-common
)
provides=(
"dbus-python=$pkgver"
"python-dbus-common=$pkgver"
)
replaces=(
dbus-python
python-dbus-common
)
meson install -C build --destdir "$pkgdir"
# Compile Python bytecode
python -m compileall -d /usr/lib "$pkgdir/usr/lib"
python -O -m compileall -d /usr/lib "$pkgdir/usr/lib"
# Install egg-info and license
install -Dm644 -t "$pkgdir$(python -c 'import site; print(site.getsitepackages()[0])')/dbus_python.egg-info/" PKG-INFO
install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname/" "$pkgbase/COPYING"
# Split documentation
mkdir -p doc/usr/share
mv {"$pkgdir",doc}/usr/share/doc
}
package_python-dbus-docs() {
pkgdesc="Developer documentation for dbus-python"
depends=()
optdepends=()
conflicts=(dbus-python-docs)
replaces=(dbus-python-docs)
mv doc/* "$pkgdir"
rm -r "$pkgdir/usr/share/doc/$pkgbase/html/.doctrees"
install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname/" "$pkgbase/COPYING"
}