44 lines
1.3 KiB
Text
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.11.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="
|
|
31835d1bf233c9fdbf13f9bc1359912dc4bff93dc61d4fe5ca149b5b8e18f9787254f59d57f93cce062bedfc66ddeabd36c257bceb753354bb59e0e8a16858ff py3-msgraph-sdk-1.11.0.tar.gz
|
|
"
|