# Maintainer: Erich Eckner # Contributor: Lukas Zimmermann # Contributor: Kelsey Maes pkgname=python-knack pkgver=0.10.1 pkgrel=1 pkgdesc="A Python command line interface framework" arch=('any') url="https://github.com/Microsoft/knack" license=('MIT') depends=('python-argcomplete' 'python-colorama' 'python-jmespath' 'python-six' 'python-tabulate' 'python-yaml') makedepends=('python-setuptools') checkdepends=('python-mock' 'python-pytest') source=("https://github.com/Microsoft/knack/archive/v${pkgver}.tar.gz") sha512sums=('9e331d1405e33e6208f30a7348c845097e45f182c93a47f3613b1b1712c7be7642aa1a79c483d04757151897c4cb59e44fc56df800ddae6901a25011e7130f75') build() { cd "knack-${pkgver}" python setup.py build } check() { cd "knack-${pkgver}" pytest } package() { cd "knack-${pkgver}" python setup.py install --root="${pkgdir}" --optimize=1 --skip-build }