39 lines
1.2 KiB
Text
39 lines
1.2 KiB
Text
# 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.32.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="
|
|
d258a2ca3bc2c9514dec91bf2dbb19c0ee4c0c0bec73a4301b47fb43be768be836f32621b70a8cdb0e39f1491a522191a82a00f318ee7c901e8861a62439e934 py3-azure-core-1.32.0.tar.gz
|
|
"
|