# Template file for 'python3-pynput'
pkgname=python3-pynput
version=1.8.2
revision=1
build_style=python3-module
hostmakedepends="python3-setuptools"
depends="python3-evdev python3-six python3-xlib"
short_desc="Monitor and control user input devices"
maintainer="Jatin K Malik <jatinkrmalik@gmail.com>"
license="LGPL-3.0-or-later"
homepage="https://github.com/moses-palmer/pynput"
changelog="https://github.com/moses-palmer/pynput/raw/master/CHANGES.rst"
distfiles="${PYPI_SITE}/p/pynput/pynput-${version}.tar.gz"
checksum=f493c87157cd3861b4468f7f896857051762f44ed26f1b641e7cc5840a457087

post_patch() {
	# setup_requires would make setuptools fetch helpers over the network;
	# none of them are needed to build, and some are not in void-packages.
	vsed -e "/setup_requires/d" -i setup.py
}
