From 9dc65b5a5fd15d3dc0d843926de2b614587dc323 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Wed, 18 Sep 2024 21:43:26 -0400 Subject: [PATCH] ilot/py3-msal: new aport --- ilot/py3-msal/APKBUILD | 43 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 ilot/py3-msal/APKBUILD diff --git a/ilot/py3-msal/APKBUILD b/ilot/py3-msal/APKBUILD new file mode 100644 index 0000000..826a32a --- /dev/null +++ b/ilot/py3-msal/APKBUILD @@ -0,0 +1,43 @@ +# Contributor: Antoine Martin (ayakael) +# Maintainer: Antoine Martin (ayakael) +pkgname=py3-msal +#_pkgreal is used by apkbuild-pypi to find modules at PyPI +_pkgreal=msal +pkgver=1.31.0 +pkgrel=0 +pkgdesc="Microsoft Authentication Library (MSAL) for Python" +url="https://pypi.org/project/msal" +arch="noarch" +license="MIT" +depends=" + py3-requests + py3-cryptography + py3-jwt +" +checkdepends="py3-pytest" +makedepends="py3-setuptools py3-gpep517 py3-wheel" +options="!check" #todo +source="$pkgname-$pkgver.tar.gz::https://github.com/AzureAD/microsoft-authentication-library-for-python/archive/refs/tags/$pkgver.tar.gz" +builddir="$srcdir"/microsoft-authentication-library-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=" +712342167c7cc958c16c45d9c21a58d83efd9ff3dccf4494d7c83fb226678ed944fef1751a4002fcb292450884c682f1b5d00cdca248d1def54d6f884cdb5dc2 py3-msal-1.31.0.tar.gz +"