ilot/py3-msal-extensions: new aport

This commit is contained in:
Antoine Martin 2024-09-18 21:43:24 -04:00 committed by ayakael
parent 607df6f9af
commit bb77fc4cf0

View file

@ -0,0 +1,42 @@
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
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
"