mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-23 03:05:48 +03:00
we never use pip in the venv manually made for tests- this might break 1-2 things unexpectedly, but - those should be looked at anyway - this has a severe speedup- even on a desktop machine with nvme, this makes an arbitrary venv go from 2.6s to <100ms(!) to make. a nice small optimisation.
37 lines
1.2 KiB
Text
37 lines
1.2 KiB
Text
# Contributor: Dmitry Romanenko <dmitry@romanenko.in>
|
|
# Maintainer: Dmitry Romanenko <dmitry@romanenko.in>
|
|
pkgname=py3-python-gssapi
|
|
pkgver=1.8.2
|
|
pkgrel=0
|
|
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"
|
|
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
|
|
"
|