mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-19 17:25:17 +03:00
35 lines
1.1 KiB
Text
35 lines
1.1 KiB
Text
# Contributor: Antoine Fontaine <antoine.fontaine@epfl.ch>
|
|
# Maintainer: Antoine Fontaine <antoine.fontaine@epfl.ch>
|
|
pkgname=py3-notify2
|
|
pkgver=0.3.1
|
|
pkgrel=1
|
|
pkgdesc="Python interface to DBus notifications"
|
|
url="https://pypi.org/project/notify2/"
|
|
arch="noarch !mips64" # blocked by dunst
|
|
license="BSD-2-Clause"
|
|
depends="python3 py3-dbus py3-gobject3"
|
|
makedepends="py3-setuptools"
|
|
checkdepends="xvfb-run dunst dbus"
|
|
source="https://files.pythonhosted.org/packages/source/n/notify2/notify2-$pkgver.tar.gz
|
|
test-wrapper.sh"
|
|
builddir="$srcdir/notify2-$pkgver"
|
|
|
|
if [ "$CARCH" = s390x ]; then # missing dunst on s390x
|
|
options="$options !check"
|
|
fi
|
|
|
|
build() {
|
|
python3 setup.py build
|
|
}
|
|
|
|
check() {
|
|
dbus-run-session xvfb-run \
|
|
sh "$srcdir"/test-wrapper.sh
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install --prefix=/usr --root="$pkgdir"
|
|
}
|
|
|
|
sha512sums="0b69a64e0a7e4955ee767c975db92c5c60d28c0e54f77498cfb98390771a8f536631fc34e42b5c46c138dfa1054b5516a0809b8e3b0cb9237a39825ddb827109 notify2-0.3.1.tar.gz
|
|
fd28280cbe7ec98c53cd898b7ebe843f1df2a953ce7e7e0d6abf50f66ca52481095338858439dec61a660a84cffe8fda4122afbc7a73da24e66408891c63c79a test-wrapper.sh"
|