iports/ilot/py3-msgraph-sdk/APKBUILD
Antoine Martin 4ef64e851d
Some checks failed
/ lint (pull_request) Failing after 43s
/ deploy-aarch64 (pull_request) Failing after 1m38s
/ build-aarch64 (pull_request) Successful in 22m55s
/ deploy-x86_64 (pull_request) Failing after 1m42s
/ build-x86_64 (pull_request) Successful in 45m10s
*: disable failing aports
2025-09-11 12:45:09 -04:00

44 lines
1.3 KiB
Text

# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
pkgname=py3-msgraph-sdk
#_pkgreal is used by apkbuild-pypi to find modules at PyPI
_pkgreal=msgraph-sdk
pkgver=1.16.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="
af930e5e470f6ac78724650885f70cf447482a53f90043d326b3e00dc7572fd0d476658ebb1677118010e38b54f1e4e609dcfb5fcef5664f05b25062786d11af py3-msgraph-sdk-1.16.0.tar.gz
"