# Contributor: Dmitry Romanenko # Maintainer: Dmitry Romanenko pkgname=py3-python-gssapi pkgver=1.8.2 pkgrel=1 pkgdesc="A Python interface to RFC 2743/2744 (plus common extensions)" url="https://github.com/pythongssapi/python-gssapi" arch="all" license="ISC" depends="python3 krb5-dev py3-decorator" checkdepends="py3-nose py3-k5test py3-parameterized py3-pytest" makedepends="cython python3-dev py3-gpep517 py3-setuptools py3-setuptools_scm py3-wheel" subpackages="$pkgname-pyc" source="https://github.com/pythongssapi/python-gssapi/releases/download/v$pkgver/python-gssapi-$pkgver.tar.gz" builddir="$srcdir"/python-gssapi-$pkgver options="!check" # fail to find self for some reason build() { export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver 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 } package() { python3 -m installer -d "$pkgdir" \ .dist/*.whl } sha512sums=" 6587f1947dc396bf608ba71e77388e6f7d161753005b9b82ea9f3b174c898bb18409a27e9aa035fc782e15fcd2efe7ca5c497d4687d69023034cea59d6a003df python-gssapi-1.8.2.tar.gz "