[arch-commits] Commit in python-pyspnego/repos (community-any community-any/PKGBUILD)

Bruno Pagani archange at archlinux.org
Tue Mar 16 02:13:59 UTC 2021


    Date: Tuesday, March 16, 2021 @ 02:13:59
  Author: archange
Revision: 891702

archrelease: copy trunk to community-any

Added:
  python-pyspnego/repos/community-any/
  python-pyspnego/repos/community-any/PKGBUILD
    (from rev 891701, python-pyspnego/trunk/PKGBUILD)

----------+
 PKGBUILD |   35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

Copied: python-pyspnego/repos/community-any/PKGBUILD (from rev 891701, python-pyspnego/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2021-03-16 02:13:59 UTC (rev 891702)
@@ -0,0 +1,35 @@
+# Maintainer: Bruno Pagani <archange at 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}
+}



More information about the arch-commits mailing list