ilot/py3-azure-core: new aport
This commit is contained in:
parent
9e931e5a66
commit
1a77a8edaf
1 changed files with 39 additions and 0 deletions
39
ilot/py3-azure-core/APKBUILD
Normal file
39
ilot/py3-azure-core/APKBUILD
Normal 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
|
||||||
|
"
|
Loading…
Add table
Reference in a new issue