From dd93e527433e5268c2e17ef13a2e3b3a1323e292 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Wed, 18 Sep 2024 21:43:19 -0400 Subject: [PATCH] ilot/py3-microsoft-kiota-serialization-json: new aport --- .../APKBUILD | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 ilot/py3-microsoft-kiota-serialization-json/APKBUILD diff --git a/ilot/py3-microsoft-kiota-serialization-json/APKBUILD b/ilot/py3-microsoft-kiota-serialization-json/APKBUILD new file mode 100644 index 0000000..8efe8fa --- /dev/null +++ b/ilot/py3-microsoft-kiota-serialization-json/APKBUILD @@ -0,0 +1,42 @@ +# Contributor: Antoine Martin (ayakael) +# Maintainer: Antoine Martin (ayakael) +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 +"