# Contributor: Antoine Martin (ayakael) # Maintainer: Antoine Martin (ayakael) pkgname=py3-msgraph-sdk #_pkgreal is used by apkbuild-pypi to find modules at PyPI _pkgreal=msgraph-sdk pkgver=1.8.0 pkgrel=0 pkgdesc="The Microsoft Graph Python SDK" url="https://pypi.python.org/project/msgraph-sdk" arch="noarch" license="MIT" depends=" py3-microsoft-kiota-serialization-text py3-microsoft-kiota-serialization-form py3-microsoft-kiota-serialization-multipart py3-msgraph-core " checkdepends="py3-pytest" makedepends="py3-setuptools py3-gpep517 py3-wheel py3-flit" source="$pkgname-$pkgver.tar.gz::https://github.com/microsoftgraph/msgraph-sdk-python/archive/refs/tags/v$pkgver.tar.gz" options="!check" # TODO builddir="$srcdir/$_pkgreal-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=" e7d93a4b0f29023dcce0529b54a397b568f44ff40b1efe52e1c060b4552dd055e6a62e0ebcb72cbf3c1babe00440c41e6f897e86a01c3e261a8b88b23cd3af2c py3-msgraph-sdk-1.8.0.tar.gz "