1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-19 01:05:15 +03:00
aports/testing/py3-libevdev/APKBUILD
2019-11-05 15:35:39 +00:00

28 lines
831 B
Text

# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Leo <thinkabit.ukim@gmail.com>
pkgname=py3-libevdev
_pkgname=python-libevdev
pkgver=0.8
pkgrel=1
pkgdesc="Python3 wrapper around the evdev library"
url="https://python-libevdev.readthedocs.io/en/latest"
arch="noarch"
license="MIT"
depends="libevdev python3"
checkdepends="py3-pytest"
source="$pkgname-$pkgver.tar.gz::https://gitlab.freedesktop.org/libevdev/$_pkgname/-/archive/$pkgver/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
build() {
python3 setup.py build
}
check() {
PYTHONPATH=. pytest-3 test/*.py
}
package() {
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
sha512sums="dbade600f2f0887c6702e5569b5b8132d636411c589395bb9770efd261c5a44479d43faecb683df45c03233e715c713daa9e70400c03ba4e7e1e2ada11128d61 py3-libevdev-0.8.tar.gz"