ilot/py3-microsoft-kiota-http: new aport
This commit is contained in:
parent
9a1134afa8
commit
5984711f03
1 changed files with 42 additions and 0 deletions
42
ilot/py3-microsoft-kiota-http/APKBUILD
Normal file
42
ilot/py3-microsoft-kiota-http/APKBUILD
Normal file
|
@ -0,0 +1,42 @@
|
||||||
|
# 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.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
|
||||||
|
"
|
Loading…
Add table
Reference in a new issue