ilot/py3-msgraph-sdk: new aport
This commit is contained in:
parent
3bead9e60c
commit
e2a90c491b
1 changed files with 44 additions and 0 deletions
44
ilot/py3-msgraph-sdk/APKBUILD
Normal file
44
ilot/py3-msgraph-sdk/APKBUILD
Normal file
|
@ -0,0 +1,44 @@
|
||||||
|
# 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.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
|
||||||
|
"
|
Loading…
Add table
Reference in a new issue