mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 13:27:09 +02:00
42 lines
1.1 KiB
Plaintext
42 lines
1.1 KiB
Plaintext
# Maintainer: Luca Weiss <luca@z3ntu.xyz>
|
|
pkgname=py3-dbusmock
|
|
_pyname=python-dbusmock
|
|
pkgver=0.29.0
|
|
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#?}}"
|
|
subpackages="$pkgname-pyc"
|
|
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="
|
|
618f6069802cdfcab41e09c9ed27f2c55c35f072bea4c0b38c057297ff3de0759b1b37128fee8d331d058f3c2a4607f25f0d8b42077f5b4fc155c6e5a4cb94c3 python-dbusmock-0.29.0.tar.gz
|
|
"
|