From 752d43e2c5ff8a9883c92278205f1474da7ccb28 Mon Sep 17 00:00:00 2001 From: icp Date: Wed, 16 Nov 2022 01:10:08 +0530 Subject: [PATCH] python3-evdev: add python3 as dep, fix tests --- srcpkgs/python3-evdev/template | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/srcpkgs/python3-evdev/template b/srcpkgs/python3-evdev/template index 87cbf847761..6a08a003f89 100644 --- a/srcpkgs/python3-evdev/template +++ b/srcpkgs/python3-evdev/template @@ -1,10 +1,12 @@ # Template file for 'python3-evdev' pkgname=python3-evdev version=1.6.0 -revision=2 +revision=3 build_style=python3-module hostmakedepends="python3-setuptools" makedepends="python3-devel" +depends="python3" +checkdepends="python3-pytest" short_desc="Python3 bindings for the Linux input subsystem" maintainer="Orphaned " license="BSD-3-Clause" @@ -12,6 +14,11 @@ homepage="https://github.com/gvalkov/python-evdev" distfiles="https://github.com/gvalkov/python-evdev/archive/v${version}.tar.gz" checksum=85877121b46e0eacf390c1ee4a07e6f5fcb3c603c1649efcccdd554f2fe0c3ab +do_check() { + # ignored uinput tests due to permission issues agasint /dev/uinput + PYTHONPATH="$(cd build/lib* && pwd)" pytest --ignore tests/test_uinput.py +} + post_install() { vlicense LICENSE }