ilot/py3-azure-core: new aport

This commit is contained in:
Antoine Martin 2024-09-18 20:42:31 -04:00
parent 9e931e5a66
commit 942da57349
Signed by: ayakael
GPG key ID: D62A472A4AA7D541

View file

@ -0,0 +1,39 @@
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
pkgname=py3-azure-core
#_pkgreal is used by apkbuild-pypi to find modules at PyPI
_pkgreal=azure-core
pkgver=1.31.0
pkgrel=0
pkgdesc="Microsoft Azure Core Library for Python"
url="https://pypi.python.org/project/microsoft-kiota-authentication-azure"
arch="noarch"
license="MIT"
depends="py3-aiohttp py3-requests"
checkdepends="py3-pytest-asyncio py3-trio"
makedepends="py3-setuptools py3-gpep517 py3-wheel py3-flit"
options="!check" #todo
source="$pkgname-$pkgver.tar.gz::https://github.com/Azure/azure-sdk-for-python/archive/refs/tags/azure-core_$pkgver.tar.gz"
builddir="$srcdir"/azure-sdk-for-python-azure-core_$pkgver/sdk/core/azure-core
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="
be2fc27610034ee5c345ed11f59233ec81d8ad628c4b732531a24e0d54720b81f22d855e5a4d9214c6a8234e479da059b37a40c7ad15e738e2dd46fb4755dad6 py3-azure-core-1.31.0.tar.gz
"