aports/community/py3-evdev/APKBUILD
2025-04-10 13:19:07 +00:00

36 lines
985 B
Text

# Contributor: Clayton Craft <clayton@craftyguy.net>
# Maintainer: Clayton Craft <clayton@craftyguy.net>
pkgname=py3-evdev
pkgver=1.9.1
pkgrel=0
pkgdesc="Python bindings to the kernel's generic input event interface (evdev) and to uinput"
url="https://github.com/gvalkov/python-evdev"
arch="all"
license="BSD-3-Clause"
depends="libevdev python3"
makedepends="
linux-headers
py3-setuptools
python3-dev
"
checkdepends="py3-pytest"
subpackages="$pkgname-pyc"
source="https://github.com/gvalkov/python-evdev/archive/v$pkgver/py3-evdev-$pkgver.tar.gz"
builddir="$srcdir/python-evdev-$pkgver"
options="!check" # tests broken: https://github.com/gvalkov/python-evdev/issues/153
build() {
python3 setup.py build
}
check() {
python3 -m pytest
}
package() {
python3 setup.py install --skip-build --root="$pkgdir"
}
sha512sums="
649487eb96291438738bd9e67de0bca6191803f5d248cf76d38aadc2a3912737bfbf4372f0abf674ae3ed051ebb98df80203fd4508cf6ab84748c2c1ef4f8625 py3-evdev-1.9.1.tar.gz
"