ilot/py3-msal: new aport

This commit is contained in:
Antoine Martin 2024-09-18 21:43:26 -04:00 committed by ayakael
parent bb77fc4cf0
commit 9dc65b5a5f

43
ilot/py3-msal/APKBUILD Normal file
View file

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