43 lines
1.2 KiB
Text
43 lines
1.2 KiB
Text
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
pkgname=py3-msgraph-core
|
|
#_pkgreal is used by apkbuild-pypi to find modules at PyPI
|
|
_pkgreal=msgraph-core
|
|
pkgver=1.1.6
|
|
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="
|
|
37a9a791bda79d277e43500092f63dc7bfa2f2814ca92e8868b4239a5fb30c99ad9704657105f9ec166155bf8db5552bcc7e2b71427a2eab5afcd03d4ce81c2f py3-msgraph-core-1.1.6.tar.gz
|
|
"
|