45 lines
1.5 KiB
Text
45 lines
1.5 KiB
Text
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
pkgname=py3-microsoft-kiota-serialization-text
|
|
#_pkgreal is used by apkbuild-pypi to find modules at PyPI
|
|
_pkgreal=microsoft-kiota-serialization-text
|
|
pkgver=1.6.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="poetry py3-gpep517 py3-wheel py3-flit"
|
|
source="
|
|
$pkgname-$pkgver.tar.gz::https://github.com/microsoft/kiota-python/archive/refs/tags/microsoft-kiota-serialization-text-v$pkgver.tar.gz
|
|
exclude-changelog.patch
|
|
"
|
|
builddir="$srcdir/kiota-python-microsoft-kiota-serialization-text-v$pkgver/packages/serialization/text"
|
|
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="
|
|
d0bfd98a480c9cc4bc539b5a3061e2c89f181feaee728bdbc28ff38ac5df360ce1809fed31f90bc67a1614a49a394ba24b92a9dc002049c3755659038b527647 py3-microsoft-kiota-serialization-text-1.6.0.tar.gz
|
|
ebc929fc1a28f155661aba6767b57a2d954de61d33d5960821c163f1c1447ff3e149ed4e998a0c1b6349d256fc3bc7d684ec15ff1c233edcf917e5641c5c7438 exclude-changelog.patch
|
|
"
|