# Maintainer: Balló György <ballogyor+arch at gmail dot com>

_pkgname=pykeepass
pkgname=python-pykeepass
pkgver=4.0.1
pkgrel=1
pkgdesc="Python library to interact with keepass databases"
arch=('any')
url="https://github.com/libkeepass/pykeepass"
license=('GPL3')
depends=(python-argon2_cffi python-construct python-dateutil python-future python-lxml python-pycryptodomex)
makedepends=(python-setuptools)
source=("https://github.com/libkeepass/$_pkgname/archive/$pkgver/$_pkgname-$pkgver.tar.gz")
md5sums=('81c93b4934b8eadeedb0eca095abb24b')

build() {
  cd $_pkgname-$pkgver
  python3 setup.py build
}

package() {
  cd $_pkgname-$pkgver
  python3 setup.py install --root="$pkgdir" --optimize=1
  rm -r "$pkgdir"/usr/lib/python*/site-packages/tests/
}
