From 3bead9e60cf8aeef97d7259df78d717b3f498bd4 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Wed, 18 Sep 2024 21:43:28 -0400 Subject: [PATCH] ilot/py3-msgraph-core: new aport --- ilot/py3-msgraph-core/APKBUILD | 43 ++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 ilot/py3-msgraph-core/APKBUILD diff --git a/ilot/py3-msgraph-core/APKBUILD b/ilot/py3-msgraph-core/APKBUILD new file mode 100644 index 0000000..affc2a5 --- /dev/null +++ b/ilot/py3-msgraph-core/APKBUILD @@ -0,0 +1,43 @@ +# Contributor: Antoine Martin (ayakael) +# Maintainer: Antoine Martin (ayakael) +pkgname=py3-msgraph-core +#_pkgreal is used by apkbuild-pypi to find modules at PyPI +_pkgreal=msgraph-core +pkgver=1.1.3 +pkgrel=0 +pkgdesc="The Microsoft Graph Python SDK" +url="https://pypi.python.org/project/msgraph-core" +arch="noarch" +license="MIT" +depends=" + py3-azure-identity + py3-microsoft-kiota-authentication-azure + py3-microsoft-kiota-http + " +checkdepends="py3-pytest" +makedepends="py3-setuptools py3-gpep517 py3-wheel py3-flit" +source="$pkgname-$pkgver.tar.gz::https://github.com/microsoftgraph/msgraph-sdk-python-core/archive/refs/tags/v$pkgver.tar.gz" +options="!check" # TODO +builddir="$srcdir/msgraph-sdk-python-core-$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=" +48b47b5b02062fe05f9f917d1c6461f539f9ff6dfbafb4a2dcfbe91237725eb7427b2673aec7eb994f733fab109879d96e06e122d72ecab69ff77a1f76fafe49 py3-msgraph-core-1.1.3.tar.gz +"