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

46 lines
1.6 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.6.0
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="poetry py3-gpep517 py3-wheel py3-flit"
source="
$pkgname-$pkgver.tar.gz::https://github.com/microsoft/kiota-python/archive/refs/tags/microsoft-kiota-serialization-json-v$pkgver.tar.gz
exclude-changelog-license.patch
"
options="!check" # TODO
builddir="$srcdir/kiota-python-microsoft-kiota-serialization-json-v$pkgver/packages/serialization/json"
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="
4e5c9c0d9549bff19b37680b5a6f6e0e73710c05de25f6d3b29bbe80776d1525f5fb19e7d9ab55433ec193b2359e8a01eca9e09340c2c8ef739e30acf6f5b075 py3-microsoft-kiota-serialization-json-1.6.0.tar.gz
fb81d10a177ff89af906989b87298a8ea3ceb188dd00d038ef1bf7e255893135e3d106450f3d14fd0b63f7f4f821305ddf6f3298bd1cb713df03393854b12452 exclude-changelog-license.patch
"