# Contributor: Noel Kuntze # Maintainer: Noel Kuntze pkgname=py3-spnego _pkgname=pyspnego pkgver=0.9.1 pkgrel=0 pkgdesc="SPNEGO Authentication library" url="https://github.com/jborean93/pyspnego" arch="noarch" license="MIT" depends="python3 py3-cryptography" makedepends=" py3-gpep517 py3-setuptools py3-wheel python3-dev " checkdepends=" cython py3-krb5 py3-pytest py3-pytest-cov py3-pytest-mock py3-pytest-xdist py3-python-gssapi py3-ruamel.yaml " subpackages="$pkgname-pyc" source="$pkgname-$pkgver.tar.gz::https://github.com/jborean93/pyspnego/archive/refs/tags/v$pkgver.tar.gz" builddir="$srcdir/$_pkgname-$pkgver" build() { gpep517 build-wheel \ --wheel-dir .dist \ --output-fd 3 3>&1 >&2 } check() { python3 -m venv --clear --without-pip --system-site-packages .testenv .testenv/bin/python3 -m installer .dist/*.whl .testenv/bin/python3 -m pytest -n auto } package() { python3 -m installer -d "$pkgdir" \ .dist/*.whl } sha512sums=" cce939272b97a81f8a06f3f661179be9cc8849af5ed5de9d7ff4b86c0c462c42686af18e5456f7ec867279fd60ac71168cf08e52527f1700683427827c19d013 py3-spnego-0.9.1.tar.gz "