summaryrefslogtreecommitdiff
path: root/python-azure-common/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'python-azure-common/PKGBUILD')
-rw-r--r--python-azure-common/PKGBUILD32
1 files changed, 32 insertions, 0 deletions
diff --git a/python-azure-common/PKGBUILD b/python-azure-common/PKGBUILD
new file mode 100644
index 000000000..a843beb3a
--- /dev/null
+++ b/python-azure-common/PKGBUILD
@@ -0,0 +1,32 @@
+# Maintainer: Erich Eckner <arch at eckner dot net>
+
+_pkgname=azure-common
+pkgname=python-$_pkgname
+pkgver=1.1.28
+pkgrel=1
+pkgdesc='Microsoft Azure Client Library for Python (Common)'
+url='https://pypi.org/project/azure-common/'
+depends=(
+ 'python>=3.10'
+ 'python<3.11'
+ 'python-humanfriendly'
+ 'python-knack'
+ 'python-pkginfo')
+makedepends=(
+ 'python-pip'
+ 'python-setuptools')
+arch=('i686' 'pentium4' 'x86_64')
+source=("https://files.pythonhosted.org/packages/3e/71/f6f71a276e2e69264a97ad39ef850dca0a04fce67b12570730cb38d0ccac/${_pkgname}-${pkgver}.zip")
+sha512sums=('cfa8d08e11ff7d855342a589f9780ba1b2386fd63cddcbcc04d83be8d4d8e41dceba494b617e27ed4e3da4366b9f1203819ec391ef4466a6700cc2c8b85f0c38')
+license=('MIT')
+
+build() {
+ cd "$srcdir/$_pkgname-$pkgver"
+ python setup.py build_ext --inplace
+ python setup.py test
+}
+
+package() {
+ cd "$srcdir/$_pkgname-$pkgver"
+ python setup.py install --root="$pkgdir" --optimize=1
+}