From 9a1134afa8b9cc2a8b18a57014e61e03dac69b59 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Wed, 18 Sep 2024 21:43:12 -0400 Subject: [PATCH] ilot/py3-microsoft-kiota-authentication-azure: new aport --- .../APKBUILD | 43 +++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 ilot/py3-microsoft-kiota-authentication-azure/APKBUILD diff --git a/ilot/py3-microsoft-kiota-authentication-azure/APKBUILD b/ilot/py3-microsoft-kiota-authentication-azure/APKBUILD new file mode 100644 index 0000000..2149918 --- /dev/null +++ b/ilot/py3-microsoft-kiota-authentication-azure/APKBUILD @@ -0,0 +1,43 @@ +# Contributor: Antoine Martin (ayakael) +# Maintainer: Antoine Martin (ayakael) +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 +"