# Maintainer: Ricardo Band pkgname=desec-dns-cli pkgver=0.0.1 pkgrel=2 pkgdesc="CLI tool for the desec.io DNS service" arch=("any") url=https://gitlab.com/XenGi/desec-dns-cli license=("MIT") depends=("python>=3.6" "python-click") makedepends=("python-setuptools") checkdepends=("python-pytest" "python-pytest-xdist" "python-pytest-flake8") source=("https://files.pythonhosted.org/packages/source/${pkgname::1}/$pkgname/$pkgname-$pkgver.tar.gz") sha256sums=('ed6ecd486f13a707ce19baffd964392ba1a086052c682cc518cb34dd4a5c5ebb') check() { cd "$srcdir/$pkgname-$pkgver" pytest --flake8 tests/ } build() { cd "$srcdir/$pkgname-$pkgver" python setup.py build } package() { cd "$srcdir/$pkgname-$pkgver" python setup.py install --root="$pkgdir/" --optimize=1 --skip-build }