iports/ilot/py3-microsoft-kiota-serialization-form/APKBUILD

45 lines
1.5 KiB
Text

# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
pkgname=py3-microsoft-kiota-serialization-form
#_pkgreal is used by apkbuild-pypi to find modules at PyPI
_pkgreal=microsoft-kiota-serialization-form
pkgver=1.6.0
pkgrel=0
pkgdesc="Kiota Form encoded serialization implementation for Python"
url="https://pypi.python.org/project/microsoft-kiota-serialization-form"
arch="noarch"
license="MIT"
depends="
py3-microsoft-kiota-abstractions
py3-pendulum
"
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-serialization-form-v$pkgver.tar.gz
exclude-changelog.patch
"
builddir="$srcdir/kiota-python-microsoft-kiota-serialization-form-v$pkgver/packages/serialization/form"
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="
f7f470179d66897beb8644d895fdeb2cd0ba7aa50d35778c42a408940fbe492c4a95623ac7b9905cd00483b7eec9dcbeaffdba9770182fe0b94c9426a0632953 py3-microsoft-kiota-serialization-form-1.6.0.tar.gz
a3c3995f66fb1b5ed59f84b0ace6b913d89e0e6b45886154d9016c8bc24b86b822e843f0b1293921cdc22560e78b1876405f1be77d28cad0e56a858e0e48a9de exclude-changelog.patch
"