summaryrefslogtreecommitdiff
path: root/python-knack/PKGBUILD
blob: 568db4296ba9edefa834d33d3b539b400a5ac6ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Maintainer: Erich Eckner <arch at eckner dot net>
# Contributor: Lukas Zimmermann <luk.zim91 at gmail dot com> 
# Contributor: Kelsey Maes <kelseymaes at outlook dot com>

pkgname=python-knack
pkgver=0.11.0
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=('cc23b653b0e740b3f4e40d4b20e541e80fe98d14633d764205319961e2222cafcfecec73f38c574cb1b7d065d53dda595fcd82aecc1224c1edc6475e5d26c590')

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
}