diff --git a/PKGBUILD b/PKGBUILD index e50a846..1397255 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -4,7 +4,7 @@ _pkgname=hvac pkgname=python-$_pkgname # https://github.com/hvac/hvac/releases -pkgver=1.2.1 +pkgver=2.0.0 pkgrel=1 pkgdesc='Python 2.7/3.X client for HashiCorp Vault' url='https://python-hvac.org/' @@ -12,13 +12,13 @@ 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 +checkdepends=(python-pytest python-pytest-mock python-mock python-authlib python-flask python-flask-sqlalchemy python-parameterized python-requests-mock python-werkzeug python-jwcrypto consul) source=("https://github.com/$_pkgname/$_pkgname/archive/v$pkgver/$_pkgname-$pkgver.tar.gz" - "$pkgname-flask-2.3.patch"::"https://github.com/hvac/hvac/commit/b613cda385faef936eb0926ed49a20decf71f16d.patch") -sha512sums=('061182fe529a266ce7b0476809a69f73cd0f88cef194301547e3b8d240bf2fc40c0f83cb41a8f2e6cdd42ec08ee34dcb8f14321b700fe6ba6e1a99c3c92901a2' - '05f7f4992d56065f3ad293b82bc884e92b51595cb56346c1d106645c9f95bb8ffb5f4cae3c7d130e19e67505f155314aabaf7558073d7ee8b2480572a9a2e691') + "$pkgname-vault-1.15.patch"::"https://github.com/hvac/hvac/commit/f57cc043396569a44dfa49866f1074b42bbff4f7.patch") +sha512sums=('4ba4882a006e2c61f272f918c2388d99c1393d5986dc82ccd6c4474f2f0bb5848fcea2aa2346e503216b394675566e1c4865f6ba2bd726ecee8d4a84cd097c81' + '964cec6c1c7379d6411de72a2f308073ad2fb9b7c9654c89519f069a16af079afffdd48c9e2efcfb4ab182aea4b2e8b3668b8b58590d37966534738cb56bf9aa') prepare() { # /usr/bin/vault not working in clean chroots as it requires CAP_IPC_LOCK @@ -27,9 +27,8 @@ prepare() { cp -v /usr/bin/vault vault-unprivileged/ cd $_pkgname-$pkgver - # Fix compatibility with Flask 2.3 - # Part of https://github.com/hvac/hvac/pull/1048 (merged) - patch -Np1 -i ../$pkgname-flask-2.3.patch + # Fix compatibility with vault 1.15 + patch -Np1 -i ../$pkgname-vault-1.15.patch } build() {