Date: Saturday, November 12, 2022 @ 22:17:48
  Author: jelle
Revision: 1347141

archrelease: copy trunk to community-any

Added:
  python-hvac/repos/community-any/PKGBUILD
    (from rev 1347140, python-hvac/trunk/PKGBUILD)
Deleted:
  python-hvac/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   92 +++++++++++++++++++++++++++++++------------------------------
 1 file changed, 48 insertions(+), 44 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD    2022-11-12 22:17:42 UTC (rev 1347140)
+++ PKGBUILD    2022-11-12 22:17:48 UTC (rev 1347141)
@@ -1,44 +0,0 @@
-# Maintainer: Chih-Hsuan Yen <[email protected]>
-# Contributor: David Vilar Benet <archlinux at b0rken dot de>
-
-_pkgname=hvac
-pkgname=python-$_pkgname
-# https://github.com/hvac/hvac/releases
-pkgver=1.0.2
-pkgrel=1
-pkgdesc='Python 2.7/3.X client for HashiCorp Vault'
-url='https://python-hvac.org/'
-license=(Apache)
-arch=(any)
-depends=(python python-pyhcl python-requests python-six)
-makedepends=(python-build python-installer python-poetry-core vault)
-checkdepends=(python-pytest python-authlib python-flask 
python-flask-sqlalchemy python-mock
-              python-parameterized python-requests-mock python-werkzeug 
python-jwcrypto
-              consul)
-# Upstream intentionally prune tests from sdists 
(https://github.com/hvac/hvac/pull/356)
-source=("https://github.com/$_pkgname/$_pkgname/archive/v$pkgver/$_pkgname-$pkgver.tar.gz";)
-sha512sums=('e0f81682be5308a418c2246b03573f0001b9e619e1dc6435b9c9bb608e496a6406b862e28c337afe56cd2d2432d9a0240af5529841d3d6b1b60b662b9b56b668')
-
-prepare() {
-  # /usr/bin/vault not working in clean chroots as it requires CAP_IPC_LOCK
-  # https://github.com/hashicorp/vault/issues/10048
-  mkdir -p vault-unprivileged
-  cp -v /usr/bin/vault vault-unprivileged/
-}
-
-build() {
-  cd $_pkgname-$pkgver
-  python -m build --wheel --no-isolation
-}
-
-check() {
-  cd $_pkgname-$pkgver
-  # test_ldap requires many unpackaged dependencies
-  PATH="$srcdir/vault-unprivileged:$PATH" pytest tests \
-    --ignore=tests/integration_tests/api/auth_methods/test_ldap.py
-}
-
-package() {
-  cd $_pkgname-$pkgver
-  python -m installer --destdir="$pkgdir" dist/*.whl
-}

Copied: python-hvac/repos/community-any/PKGBUILD (from rev 1347140, 
python-hvac/trunk/PKGBUILD)
===================================================================
--- PKGBUILD                            (rev 0)
+++ PKGBUILD    2022-11-12 22:17:48 UTC (rev 1347141)
@@ -0,0 +1,48 @@
+# Maintainer: Chih-Hsuan Yen <[email protected]>
+# Contributor: David Vilar Benet <archlinux at b0rken dot de>
+
+_pkgname=hvac
+pkgname=python-$_pkgname
+# https://github.com/hvac/hvac/releases
+pkgver=1.0.2
+pkgrel=2
+pkgdesc='Python 2.7/3.X client for HashiCorp Vault'
+url='https://python-hvac.org/'
+license=(Apache)
+arch=(any)
+depends=(python python-pyhcl python-requests python-six)
+makedepends=(python-build python-installer python-poetry-core vault)
+checkdepends=(python-pytest python-authlib python-flask python-flask-sqlalchemy
+              python-parameterized python-requests-mock python-werkzeug 
python-jwcrypto
+              consul)
+# Upstream intentionally prune tests from sdists 
(https://github.com/hvac/hvac/pull/356)
+source=("https://github.com/$_pkgname/$_pkgname/archive/v$pkgver/$_pkgname-$pkgver.tar.gz";)
+sha512sums=('e0f81682be5308a418c2246b03573f0001b9e619e1dc6435b9c9bb608e496a6406b862e28c337afe56cd2d2432d9a0240af5529841d3d6b1b60b662b9b56b668')
+
+prepare() {
+  # /usr/bin/vault not working in clean chroots as it requires CAP_IPC_LOCK
+  # https://github.com/hashicorp/vault/issues/10048
+  mkdir -p vault-unprivileged
+  cp -v /usr/bin/vault vault-unprivileged/
+
+  cd $_pkgname-$pkgver
+  # workaround https://github.com/hvac/hvac/issues/905
+  sed -i '/use_microsoft_graph_api/d' 
tests/integration_tests/api/secrets_engines/test_azure.py
+}
+
+build() {
+  cd $_pkgname-$pkgver
+  python -m build --wheel --no-isolation
+}
+
+check() {
+  cd $_pkgname-$pkgver
+  # test_ldap requires many unpackaged dependencies
+  PATH="$srcdir/vault-unprivileged:$PATH" pytest tests \
+    --ignore=tests/integration_tests/api/auth_methods/test_ldap.py
+}
+
+package() {
+  cd $_pkgname-$pkgver
+  python -m installer --destdir="$pkgdir" dist/*.whl
+}

Reply via email to