# Maintainer: Erich Eckner _pkgname=azure-cli-core pkgname=python-$_pkgname pkgver=2.50.0 pkgrel=1 pkgdesc='Microsoft Azure Command-Line Tools Core Module' url='https://pypi.org/project/azure-cli-core/' depends=( 'python>=3.11' 'python<3.12') makedepends=( 'python-setuptools') license=('BSD') arch=('any') source=("https://pypi.python.org/packages/f1/80/d67ff842d315c92be38bd2519e87708a8c80e097526f3fcc3e36c447c18d/${_pkgname}-${pkgver}.tar.gz") sha512sums=('73a2fc2f8fa7c1bb079cc30d89f749531f48a14b48c771c446714c340b41ac270c262995dd0fd068c3df26b08c1cdd2a5c3759947b346f4ca324809e3d53c4a8') build() { cd "$srcdir/$_pkgname-$pkgver" python setup.py build_ext --inplace python setup.py test } package() { cd "$srcdir/$_pkgname-$pkgver" python setup.py install --root="$pkgdir" --optimize=1 install -D -m644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE" }