# Maintainer: Sven-Hendrik Haase <svenstaro@archlinux.org>
# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
# Contributor: Carl George < arch at cgtx dot us >
pkgname=python-click
_realname=click
pkgver=8.1.7
pkgrel=3
pkgdesc="Simple wrapper around optparse for powerful command line utilities"
arch=("any")
url='https://click.palletsprojects.com/'
license=("BSD")
depends=("python")
makedepends=('python-setuptools' 'python-build' 'python-installer' 'python-wheel')
#checkdepends=('python-pytest')
source=("https://github.com/pallets/click/archive/${pkgver}/$pkgname-$pkgver.tar.gz")
sha512sums=('a1cb115b90193d78f94ec2a6af563b089820517e6e0e4b71ea3d6c68304444d16db3597358c62e1757d9d05449996b7168a220eecde6ab4991367fdb6e74096f')
build() {
cd "${srcdir}/${_realname}-${pkgver}"
python -m build --wheel --no-isolation
}
#check() {
# cd "${srcdir}/${_realname}-${pkgver}"
# https://github.com/pallets/click/issues/2489
# PYTHONPATH="build/lib" pytest -k 'not test_bytes_args'
#}
package() {
cd "${srcdir}/${_realname}-${pkgver}"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm 644 "LICENSE.rst" -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
# vim:set ts=2 sw=2 et: