Date: Friday, March 17, 2023 @ 15:31:08
Author: yan12125
Revision: 1421292
archrelease: copy trunk to community-any
Added:
python-hvac/repos/community-any/PKGBUILD
(from rev 1421291, python-hvac/trunk/PKGBUILD)
Deleted:
python-hvac/repos/community-any/PKGBUILD
----------+
PKGBUILD | 98 +++++++++++++++++++++++++++++++------------------------------
1 file changed, 50 insertions(+), 48 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2023-03-17 15:30:52 UTC (rev 1421291)
+++ PKGBUILD 2023-03-17 15:31:08 UTC (rev 1421292)
@@ -1,48 +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=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
-}
Copied: python-hvac/repos/community-any/PKGBUILD (from rev 1421291,
python-hvac/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2023-03-17 15:31:08 UTC (rev 1421292)
@@ -0,0 +1,50 @@
+# 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.1.0
+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)
+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=('b9201aaaabbc3f6831951022152be0a05f486a021728a543ca32f88efcb1f29e9d62c0a20afcafbb0e9354a6c1d44ad64b5b0685daf7070cb8b618156b9454c7')
+
+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
+ # dynamic SSH key support was dropped in vault 1.13
https://developer.hashicorp.com/vault/docs/v1.12.x/deprecation
+ PATH="$srcdir/vault-unprivileged:$PATH" pytest tests \
+ --ignore=tests/integration_tests/api/auth_methods/test_ldap.py \
+ -k 'not test_create_key and not test_delete_key'
+}
+
+package() {
+ cd $_pkgname-$pkgver
+ python -m installer --destdir="$pkgdir" dist/*.whl
+}