[arch-commits] Commit in python-pyspnego/trunk (PKGBUILD)

Bruno Pagani archange at gemini.archlinux.org
Mon Oct 18 10:23:42 UTC 2021


    Date: Monday, October 18, 2021 @ 10:23:42
  Author: archange
Revision: 1030818

Backport fix for credssp.
Also run tests with the built library rather than in-place.

Modified:
  python-pyspnego/trunk/PKGBUILD

----------+
 PKGBUILD |   16 +++++++++++-----
 1 file changed, 11 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-10-18 10:23:35 UTC (rev 1030817)
+++ PKGBUILD	2021-10-18 10:23:42 UTC (rev 1030818)
@@ -3,7 +3,7 @@
 _pkg=pyspnego
 pkgname=python-${_pkg}
 pkgver=0.2.0
-pkgrel=1
+pkgrel=2
 pkgdesc="SPNEGO Authentication library"
 arch=(any)
 url="https://github.com/jborean93/pyspnego"
@@ -15,9 +15,16 @@
             '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=('3d201f33c73d5455d3e6db1892585c6962d6181d0fe3fe0549483ff1febf3451')
+source=(${url}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz
+        ${pkgname}-fix-credssp.patch::https://github.com/jborean93/pyspnego/pull/25.patch)
+sha256sums=('3d201f33c73d5455d3e6db1892585c6962d6181d0fe3fe0549483ff1febf3451'
+            '74d16ada063c1204b73953b5c9614e0a32d080886f5467a6ab888a53d57a1275')
 
+prepare() {
+  cd ${_pkg}-${pkgver}
+  patch -p1 < ../${pkgname}-fix-credssp.patch
+}
+
 build() {
   cd ${_pkg}-${pkgver}
   python setup.py build
@@ -25,8 +32,7 @@
 
 check() {
   cd ${_pkg}-${pkgver}
-  # https://github.com/jborean93/pyspnego/issues/24
-  pytest -v -k "not test_credssp_invalid_client_authentication_v2 and not test_credssp_invalid_client_authentication"
+  PYTHONPATH="${PWD}/build/lib" pytest -v --color=yes
 }
 
 package() {



More information about the arch-commits mailing list