From 607df6f9affbf09a2e7836331fe4ec716a8b6238 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Wed, 18 Sep 2024 21:43:22 -0400 Subject: [PATCH] ilot/py3-microsoft-kiota-serialization-text: new aport --- .../APKBUILD | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 ilot/py3-microsoft-kiota-serialization-text/APKBUILD diff --git a/ilot/py3-microsoft-kiota-serialization-text/APKBUILD b/ilot/py3-microsoft-kiota-serialization-text/APKBUILD new file mode 100644 index 0000000..7684d45 --- /dev/null +++ b/ilot/py3-microsoft-kiota-serialization-text/APKBUILD @@ -0,0 +1,41 @@ +# Contributor: Antoine Martin (ayakael) +# Maintainer: Antoine Martin (ayakael) +pkgname=py3-microsoft-kiota-serialization-text +#_pkgreal is used by apkbuild-pypi to find modules at PyPI +_pkgreal=microsoft-kiota-serialization-text +pkgver=1.0.0 +pkgrel=0 +pkgdesc="Text serialization implementation for Kiota generated clients in Python" +url="https://pypi.python.org/project/microsoft-kiota-abstractions" +arch="noarch" +license="MIT" +depends=" + py3-microsoft-kiota-abstractions + py3-dateutil + " +checkdepends="py3-pytest" +makedepends="py3-setuptools py3-gpep517 py3-wheel py3-flit" +source="$pkgname-$pkgver.tar.gz::https://github.com/microsoft/kiota-serialization-text-python/archive/refs/tags/v$pkgver.tar.gz" +builddir="$srcdir/kiota-serialization-text-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=" +b3b0d0a7e69c70c14ed606f70179a49107f6df6f2ba577e9bacbdb15b3071062a180d2e6b77a43d82fe7a67264ad24aa685c71695042ffd54ea4406f9b990208 py3-microsoft-kiota-serialization-text-1.0.0.tar.gz +"