aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-libevdev/APKBUILD
blob: e7d1db5c899a9a76c0d9a119e8bd79af692e2c1c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# 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"