42 lines
1.3 KiB
Text
42 lines
1.3 KiB
Text
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
pkgname=py3-microsoft-kiota-http
|
|
#_pkgreal is used by apkbuild-pypi to find modules at PyPI
|
|
_pkgreal=microsoft-kiota-http
|
|
pkgver=1.6.0
|
|
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="poetry py3-gpep517 py3-wheel py3-flit"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/microsoft/kiota-python/archive/refs/tags/microsoft-kiota-http-v$pkgver.tar.gz"
|
|
options="!check" # TODO
|
|
builddir="$srcdir/kiota-python-microsoft-kiota-http-v$pkgver/packages/http/httpx"
|
|
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="
|
|
190ef1e74fa6305f41aecc464630883291ad2bbd897e3abf5d91d94996eccb7a825511ee5ccbb0aca79888bf5991323bbddb5c91327d4e4887c93b72c92b71da py3-microsoft-kiota-http-1.6.0.tar.gz
|
|
"
|