# Maintainer: xiretza _pkgname='pyAttributes' pkgname=python-${_pkgname,,} pkgver=2.5.0 pkgrel=1 pkgdesc="Implementations of .NET-like attributes realized with Python decorators" arch=(any) url="https://github.com/pyTooling/$_pkgname" license=('Apache') depends=('python' 'python-argcomplete' 'python-pytooling') makedepends=('python-setuptools') checkdepends=('python-pytest') source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz") sha256sums=('47ab3f4765483805acca31a6376e66a4741fe04d1f77c3c565d6b763004f729c') build() { cd "$_pkgname-$pkgver" python setup.py build } check(){ cd "$_pkgname-$pkgver" pytest tests/ } package() { cd "$_pkgname-$pkgver" python setup.py install --root="$pkgdir/" --optimize=1 --skip-build }