# Maintainer: Luca Weiss pkgname=py3-dbusmock _pyname=python-dbusmock pkgver=0.27.5 pkgrel=0 pkgdesc="Mock D-Bus objects for tests" url="https://github.com/martinpitt/python-dbusmock" arch="noarch" license="LGPL-3.0-or-later" depends="py3-dbus py3-gobject3" makedepends="python3-dev py3-setuptools" checkdepends="dbus py3-nose bash" _pypiprefix="${_pyname%${_pyname#?}}" source="https://files.pythonhosted.org/packages/source/$_pypiprefix/$_pyname/$_pyname-$pkgver.tar.gz" builddir="$srcdir/$_pyname-$pkgver" build() { python3 setup.py build } check() { # Skip the fakeroot tests as they can't run under our fakeroot environment # https://github.com/martinpitt/python-dbusmock/issues/46 env -u LD_PRELOAD python3 -m unittest } package() { python3 setup.py install --prefix=/usr --root="$pkgdir" } sha512sums=" 6e5f5eddfc949c610b64a766434988c142397893e088b8522e6895e31383ec3c14d2f053f9aab17f00137e883a01bf95be35326f7ca97ee8c9780d6704e7d1dc python-dbusmock-0.27.5.tar.gz "