diff --git a/ilot/py3-microsoft-kiota-http/APKBUILD b/ilot/py3-microsoft-kiota-http/APKBUILD new file mode 100644 index 0000000..e1ded6f --- /dev/null +++ b/ilot/py3-microsoft-kiota-http/APKBUILD @@ -0,0 +1,42 @@ +# Contributor: Antoine Martin (ayakael) +# Maintainer: Antoine Martin (ayakael) +pkgname=py3-microsoft-kiota-http +#_pkgreal is used by apkbuild-pypi to find modules at PyPI +_pkgreal=microsoft-kiota-http +pkgver=1.3.3 +pkgrel=0 +pkgdesc="Kiota http request adapter implementation for httpx library" +url="https://pypi.python.org/project/microsoft-kiota-http" +arch="noarch" +license="MIT" +depends=" + py3-microsoft-kiota-abstractions + py3-httpx + " +checkdepends="py3-pytest" +makedepends="py3-setuptools py3-gpep517 py3-wheel py3-flit" +source="$pkgname-$pkgver.tar.gz::https://github.com/microsoft/kiota-http-python/archive/refs/tags/v$pkgver.tar.gz" +options="!check" # TODO +builddir="$srcdir/kiota-http-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=" +fff2dc37a0e379ad5689ff9532b43e6ee62ca97589b2feed39898c17a45c5cdb17c20bd714c46cd6ae6e2522de695b6c747aaf5fb0ef96dfd504cd37a6169a87 py3-microsoft-kiota-http-1.3.3.tar.gz +"