description="Python bindings for the Linux input subsystem"
url="https://python-evdev.readthedocs.io/en/latest/"

contributors="Rems,Tnut"
packager="spiky <spiky@nutyx.org>"
 
makedepends=(python-setuptools python-wheel)

name=python-evdev
_name="evdev"
alias=(${_name})

version=1.7.1

PKGMK_KEEP_SOURCES="no"

source=(https://pypi.org/packages/source/e/evdev/evdev-$version.tar.gz)

build() {
  cd ${_name}-$version

  pip3 wheel -w dist \
    --no-build-isolation \
    --no-deps $PWD
  pip3 install --no-index \
    --find-links dist \
    --no-cache-dir    \
    --no-user         \
    --root=$PKG       \
    ${_name}

 find $PKG -type d -name vendor -o -name tests |xargs rm -rf 
}
