43 lines
1.4 KiB
Text
43 lines
1.4 KiB
Text
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
pkgname=py3-microsoft-kiota-authentication-azure
|
|
#_pkgreal is used by apkbuild-pypi to find modules at PyPI
|
|
_pkgreal=microsoft-kiota-authentication-azure
|
|
pkgver=1.1.0
|
|
pkgrel=0
|
|
pkgdesc="Authentication provider for Kiota using Azure Identity"
|
|
url="https://pypi.python.org/project/microsoft-kiota-authentication-azure"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="
|
|
py3-azure-core
|
|
py3-microsoft-kiota-abstractions
|
|
py3-importlib-metadata
|
|
"
|
|
checkdepends="py3-pytest"
|
|
makedepends="py3-setuptools py3-gpep517 py3-wheel py3-flit"
|
|
options="!check" # TODO
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/microsoft/kiota-authentication-azure-python/archive/refs/tags/v$pkgver.tar.gz"
|
|
builddir="$srcdir/kiota-authentication-azure-python-$pkgver"
|
|
subpackages="$pkgname-pyc"
|
|
|
|
build() {
|
|
gpep517 build-wheel \
|
|
--wheel-dir .dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
|
.testenv/bin/python3 -m installer .dist/*.whl
|
|
.testenv/bin/python3 -m pytest -v
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
.dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
4a58a49c027951dd856bc24b03c6ba44b448949bcd3210237d2574e3ceec32eefb403057720e4d517027494d6f977874dd48abbfb5cf856399eb5d1c895376fc py3-microsoft-kiota-authentication-azure-1.1.0.tar.gz
|
|
"
|