From 94c753da26b10f1d3d6322d30bc8155fce7acc64 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Wed, 18 Sep 2024 21:43:08 -0400 Subject: [PATCH] ilot/py3-azure-identity: new aport --- ilot/py3-azure-identity/APKBUILD | 45 ++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 ilot/py3-azure-identity/APKBUILD diff --git a/ilot/py3-azure-identity/APKBUILD b/ilot/py3-azure-identity/APKBUILD new file mode 100644 index 0000000..e448e38 --- /dev/null +++ b/ilot/py3-azure-identity/APKBUILD @@ -0,0 +1,45 @@ +# Contributor: Antoine Martin (ayakael) +# Maintainer: Antoine Martin (ayakael) +pkgname=py3-azure-identity +#_pkgreal is used by apkbuild-pypi to find modules at PyPI +_pkgreal=azure-identity +pkgver=1.18.0 +_pkgver=${pkgver}b2 +pkgrel=0 +pkgdesc="Microsoft Azure Identity Library for Python" +url="https://pypi.org/project/azure-identity/" +arch="noarch" +license="MIT" +depends=" + py3-azure-core + py3-cryptography + py3-msal-extensions + py3-typing-extensions +" +checkdepends="py3-pytest" +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-identity_$_pkgver.tar.gz" +builddir="$srcdir"/azure-sdk-for-python-azure-identity_$_pkgver/sdk/identity/azure-identity +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=" +84defc19db3aea614b13dbf2d24ee3ea13c210a05460a4ae2968b01d34f136c81eb9d77b7ce1f0c4590e6f36af0b6fe114787fc7897ffa0f2d8093a9bcb48bf4 py3-azure-identity-1.18.0.tar.gz +"