Date: Tuesday, March 16, 2021 @ 02:13:35 Author: archange Revision: 891701
Initial addition of python-pyspnego to [community] Dependency for python-smbprotocol Added: python-pyspnego/ python-pyspnego/repos/ python-pyspnego/trunk/ python-pyspnego/trunk/PKGBUILD ----------+ PKGBUILD | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) Added: python-pyspnego/trunk/PKGBUILD =================================================================== --- python-pyspnego/trunk/PKGBUILD (rev 0) +++ python-pyspnego/trunk/PKGBUILD 2021-03-16 02:13:35 UTC (rev 891701) @@ -0,0 +1,35 @@ +# Maintainer: Bruno Pagani <archa...@archlinux.org> + +_pkg=pyspnego +pkgname=python-${_pkg} +pkgver=0.1.5 +pkgrel=1 +pkgdesc="SPNEGO Authentication library" +arch=(any) +url="https://github.com/jborean93/pyspnego" +license=(MIT) +depends=(python-cryptography) +makedepends=(python-setuptools) +checkdepends=(cython python-pytest python-pytest-mock python-gssapi python-ruamel-yaml) +optdepends=('python-gssapi: Kerberos support' + 'python-ruamel-yaml: YAML configuration') +# 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=('64a6f700b453fe2bee7f87f9c5f34d22165e052e0c34ae5ad2ff756a607ed3de') + +build() { + cd ${_pkg}-${pkgver} + python setup.py build +} + +check() { + cd ${_pkg}-${pkgver} + py.test -v +} + +package() { + cd ${_pkg}-${pkgver} + python setup.py install --prefix=/usr --root="${pkgdir}" --skip-build --optimize=1 + install -Dm644 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname} +}