Date: Saturday, October 16, 2021 @ 21:39:16 Author: archange Revision: 1030595
Initial addition of python-krb5 as dep of python-pyspnego Added: python-krb5/ python-krb5/repos/ python-krb5/trunk/ python-krb5/trunk/PKGBUILD ----------+ PKGBUILD | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) Added: python-krb5/trunk/PKGBUILD =================================================================== --- python-krb5/trunk/PKGBUILD (rev 0) +++ python-krb5/trunk/PKGBUILD 2021-10-16 21:39:16 UTC (rev 1030595) @@ -0,0 +1,34 @@ +# Maintainer: Bruno Pagani <archa...@archlinux.org> + +_pkg=krb5 +pkgname=python-${_pkg} +pkgver=0.1.2 +pkgrel=1 +pkgdesc="krb5 API interface" +arch=(x86_64) +url="https://github.com/jborean93/pykrb5" +license=(MIT) +depends=(python krb5) +makedepends=(cython python-setuptools) +checkdepends=(python-pytest python-k5test) +# No tests in pypi tarball +#source=(https://files.pythonhosted.org/packages/source/${_pkg::1}/${_pkg}/${_pkg}-${pkgver}.tar.gz) +source=(${url}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz) +sha256sums=('efba34f2e114517414a9e497adbf5f0272c6fe7ced9a004119ea5c1ef293f1e3') + +build() { + cd py${_pkg}-${pkgver} + python setup.py build +} + +check() { + cd py${_pkg}-${pkgver} + local python_version=$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))') + PYTHONPATH="$PWD/build/lib.linux-$CARCH-${python_version}" pytest -v +} + +package() { + cd py${_pkg}-${pkgver} + python setup.py install --prefix=/usr --root="${pkgdir}" --skip-build --optimize=1 + install -Dm644 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname} +}