40 lines
1.4 KiB
Text
40 lines
1.4 KiB
Text
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
pkgname=py3-microsoft-kiota-serialization-multipart
|
|
#_pkgreal is used by apkbuild-pypi to find modules at PyPI
|
|
_pkgreal=microsoft-kiota-serialization-multipart
|
|
pkgver=1.6.8
|
|
pkgrel=0
|
|
pkgdesc="Multipart serialization implementation for python based kiota clients"
|
|
url="https://pypi.python.org/project/microsoft-kiota-serialization-multipart"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="py3-microsoft-kiota-abstractions py3-microsoft-kiota-serialization-json"
|
|
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-multipart-v$pkgver.tar.gz
|
|
"
|
|
builddir="$srcdir/kiota-python-microsoft-kiota-serialization-multipart-v$pkgver/packages/serialization/multipart"
|
|
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="
|
|
d6d6d36fe55f4aa595d380e43f93f3de7674633edba676aec16fc26254a12e4f700427fedf1bedfddde30a7f708c93ccbbe586bb0e6950748a2debe609bf44c1 py3-microsoft-kiota-serialization-multipart-1.6.8.tar.gz
|
|
"
|