# Maintainer: Luca Weiss pkgname=py3-dbusmock _pyname=python-dbusmock pkgver=0.28.7 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="dbus py3-dbus py3-gobject3" makedepends="python3-dev py3-setuptools" checkdepends="py3-nose bash" _pypiprefix="${_pyname%${_pyname#?}}" source="https://files.pythonhosted.org/packages/source/$_pypiprefix/$_pyname/$_pyname-$pkgver.tar.gz" builddir="$srcdir/$_pyname-$pkgver" prepare() { default_prepare # upstream didn't test linting before release rm tests/test_code.py } 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 --skip-build --root="$pkgdir" } sha512sums=" d0fea9ad3a9f76af75f48a4e645f8ed70efde880043c9b843bc8cac53eca891c45fa9c74cefab63a820397886757ac0dc9c5f43aaf7604aa302c794aedb7bb46 python-dbusmock-0.28.7.tar.gz "