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-serialization-json
|
|
#_pkgreal is used by apkbuild-pypi to find modules at PyPI
|
|
_pkgreal=microsoft-kiota-serialization-json
|
|
pkgver=1.3.2
|
|
pkgrel=0
|
|
pkgdesc="JSON serialization implementation for Kiota clients in Python"
|
|
url="https://pypi.python.org/project/microsoft-kiota-serialization-json"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="
|
|
py3-microsoft-kiota-abstractions
|
|
py3-pendulum
|
|
"
|
|
checkdepends="py3-pytest"
|
|
makedepends="py3-setuptools py3-gpep517 py3-wheel py3-flit"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/microsoft/kiota-serialization-json-python/archive/refs/tags/v$pkgver.tar.gz"
|
|
options="!check" # TODO
|
|
builddir="$srcdir/kiota-serialization-json-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="
|
|
bdf2a42d4509b7a6f093295c8f5d661e771d040965ebdd7fb7772503482fbc6d449c5ac7b16f5f497d9005018d463d3a68650b4b4da0f1a7fbcb0ad3377d12b5 py3-microsoft-kiota-serialization-json-1.3.2.tar.gz
|
|
"
|