From e2a90c491b567d1a293335f8bb73379ea25e7b2d Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Wed, 18 Sep 2024 21:43:30 -0400 Subject: [PATCH] ilot/py3-msgraph-sdk: new aport --- ilot/py3-msgraph-sdk/APKBUILD | 44 +++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 ilot/py3-msgraph-sdk/APKBUILD diff --git a/ilot/py3-msgraph-sdk/APKBUILD b/ilot/py3-msgraph-sdk/APKBUILD new file mode 100644 index 0000000..d59a1e7 --- /dev/null +++ b/ilot/py3-msgraph-sdk/APKBUILD @@ -0,0 +1,44 @@ +# 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 +"