From 8ccb010ee289382e8e8e22e4f4483c54fc14ebdf Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Wed, 18 Sep 2024 20:42:55 -0400 Subject: [PATCH] ilot/py3-msal-extensions: new aport --- ilot/py3-msal-extensions/APKBUILD | 42 +++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 ilot/py3-msal-extensions/APKBUILD diff --git a/ilot/py3-msal-extensions/APKBUILD b/ilot/py3-msal-extensions/APKBUILD new file mode 100644 index 0000000..a2e26c4 --- /dev/null +++ b/ilot/py3-msal-extensions/APKBUILD @@ -0,0 +1,42 @@ +# Contributor: Antoine Martin (ayakael) +# Maintainer: Antoine Martin (ayakael) +pkgname=py3-msal-extensions +#_pkgreal is used by apkbuild-pypi to find modules at PyPI +_pkgreal=msal-extensions +pkgver=1.2.0 +pkgrel=0 +pkgdesc="Microsoft Authentication Library extensions (MSAL EX) provides a persistence API " +url="https://pypi.org/project/msal-extensions" +arch="noarch" +license="MIT" +depends=" + py3-msal + py3-portalocker +" +checkdepends="py3-pytest" +makedepends="py3-setuptools py3-gpep517 py3-wheel" +options="!check" #todo +source="$pkgname-$pkgver.tar.gz::https://github.com/AzureAD/microsoft-authentication-extensions-for-python/archive/refs/tags/$pkgver.tar.gz" +builddir="$srcdir"/microsoft-authentication-extensions-for-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=" +847a87e2f7a7b71d47fb758bd3445666b2a9f1f2034c575f8a78ba687e1c5faa682b89ea78906d4afa1350bca608cd9452c7ad244c7ec456145c15c49ad46fb2 py3-msal-extensions-1.2.0.tar.gz +"