44 lines
1.4 KiB
Text
44 lines
1.4 KiB
Text
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
pkgname=py3-microsoft-kiota-abstractions
|
|
#_pkgreal is used by apkbuild-pypi to find modules at PyPI
|
|
_pkgreal=microsoft-kiota-abstractions
|
|
pkgver=1.6.8
|
|
pkgrel=0
|
|
pkgdesc="Abstractions library for Kiota generated Python clients"
|
|
url="https://pypi.python.org/project/microsoft-kiota-abstractions"
|
|
# arch="noarch"
|
|
license="MIT"
|
|
depends="
|
|
py3-std-uritemplate<2.0.0
|
|
py3-opentelemetry-sdk
|
|
py3-importlib-metadata
|
|
"
|
|
checkdepends="py3-pytest py3-pytest-asyncio"
|
|
makedepends="poetry py3-gpep517 py3-wheel py3-flit"
|
|
source="
|
|
$pkgname-$pkgver.tar.gz::https://github.com/microsoft/kiota-python/archive/refs/tags/microsoft-kiota-abstractions-v$pkgver.tar.gz
|
|
"
|
|
builddir="$srcdir/kiota-python-microsoft-kiota-abstractions-v$pkgver/packages/abstractions"
|
|
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="
|
|
55341b1ff3fb1a516ceb84817db991d6e6aa83b01326f64cf21690dee1ab84e9c9c4f7162f9f71ec1261b4e0380b73b13284128bd786b80da29faf968720b355 py3-microsoft-kiota-abstractions-1.6.8.tar.gz
|
|
"
|