# Maintainer: Mark Wagie <mark dot wagie at tutanota dot com>
# Contributor: Juliette Monsel <j_4321 at protonmail dot com>

#Included in Slint by Didier Spaier didieratslintdotfr
pkgname=python-pynput
_name=${pkgname#python-}
pkgver=1.7.6
pkgrel=1slint
slackdesc="python-pyinput (Library to monitor and control user input devices)"
url="https://github.com/moses-palmer/pynput"
license=('LGPL3')
depends=('python-xlib' 'python-six' 'python-evdev')
makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel')
source=("https://github.com/moses-palmer/pynput/archive/refs/tags/v1.7.6.tar.gz"
        'setup.patch')
sha256sums=('3a5726546da54116b687785d38b1db56997ce1d28e53e8d22fc656d8b92e533c'
            'c519290a88baa3e15be4bb6cff4d665a020b9e0c8c1241749670d58a48b07e2c')
docs=("CHANGES.rst" "COPYING.LGPL" "README.rst" "pylintrc")
options=("nosrcpack")
build() {
  cd "$_name-$pkgver"
  patch -Np1 -i $startdir/setup.patch
  python3 -m build --wheel --no-isolation
  python3 -m installer --destdir="$PKG" dist/*.whl
}
