# Contributor: Noel Kuntze # Maintainer: Noel Kuntze pkgname=py3-krb5 _pkgname=pykrb5 pkgver=0.4.0 pkgrel=2 pkgdesc="krb5 API interface" url="https://github.com/jborean93/pykrb5" arch="all" license="MIT" depends="python3 krb5" # Heimdal might be required for the Samba integration but does not work with py3-k5test #depends="python3 heimdal" # need to check if python3 pre-commit package is in testing makedepends=" cython krb5-dev py3-gpep517 py3-setuptools py3-wheel python3-dev " checkdepends=" black py3-isort py3-k5test py3-mypy py3-pytest py3-tox " source="$pkgname-$pkgver.tar.gz::https://github.com/jborean93/pykrb5/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() { # you can not simplify this because asterisks in variable assignments are not expanded. PYTHONPATH="$(echo build/lib*/)" python3 -m pytest -vv --color=yes } package() { python3 -m installer -d "$pkgdir" \ dist/krb5-*.whl } sha512sums=" 90988ed2f4d0a78f4e454a9f5461633ab6f54a25e85a6f8b19361c28dfe1bd3030ec0f2af2dec122371baf8656a69ff6ef611f5784e9021963b8454a298523ef py3-krb5-0.4.0.tar.gz "