# Contributor: Justin Berthault # Maintainer: Justin Berthault pkgname=py3-send2trash pkgver=1.8.2 pkgrel=0 pkgdesc="Send file to trash natively" url="https://github.com/arsenetar/send2trash" arch="noarch" license="BSD-3-Clause" makedepends="py3-setuptools py3-gpep517 py3-installer py3-wheel" checkdepends="py3-pytest" subpackages="$pkgname-pyc" source="$pkgname-$pkgver.tar.gz::https://github.com/arsenetar/send2trash/archive/refs/tags/$pkgver.tar.gz" builddir="$srcdir/"send2trash-$pkgver build() { gpep517 build-wheel \ --wheel-dir .dist \ --output-fd 3 3>&1 >&2 } check() { pytest tests } package() { python3 -m installer -d "$pkgdir" \ .dist/Send2Trash*.whl } sha512sums=" b750ef75ee7650dd5a7fe3aa18c71e5f812e9b6b238fd80556c1569ba0a5797b1634e53953b5dad6363a224e61cac4a10f6c1b30050228f531015b7fb3d234a1 py3-send2trash-1.8.2.tar.gz "