[arch-commits] Commit in python-hvac/repos (2 files)

Felix Yan felixonmars at gemini.archlinux.org
Wed Dec 1 16:48:44 UTC 2021


    Date: Wednesday, December 1, 2021 @ 16:48:43
  Author: felixonmars
Revision: 1060615

archrelease: copy trunk to community-staging-any

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

----------+
 PKGBUILD |   47 +++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 47 insertions(+)

Copied: python-hvac/repos/community-staging-any/PKGBUILD (from rev 1060614, python-hvac/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-12-01 16:48:43 UTC (rev 1060615)
@@ -0,0 +1,47 @@
+# Maintainer: Chih-Hsuan Yen <yan12125 at archlinux.org>
+# Contributor: David Vilar Benet <archlinux at b0rken dot de>
+
+_pkgname=hvac
+pkgname=python-$_pkgname
+# https://github.com/hvac/hvac/releases
+pkgver=0.11.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-requests python-six)
+makedepends=(python-setuptools vault)
+checkdepends=(python-pytest python-authlib python-flask python-flask-sqlalchemy python-mock
+              python-parameterized python-pyhcl python-requests-mock python-werkzeug python-jwcrypto
+              consul)
+optdepends=(
+  'python-pyhcl: for parsing returned data'
+)
+# 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=('7a3cb82e17e7ceef04173c8682b33d35457675eae7b402ba36c3a21026ebf551a2731ecbd6dc0d00bb727e98a29f0a0f5bf427d7429b55b922247b4ccfb79794')
+
+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 setup.py build
+}
+
+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 setup.py install --root="$pkgdir" --optimize=1 --skip-build
+}



More information about the arch-commits mailing list