Date: Thursday, April 6, 2023 @ 15:14:13
  Author: felixonmars
Revision: 1439412

upgpkg: python-xmlsec 1.3.13-2: rebuild with python 3.11 (pass1 with --nocheck)

Modified:
  python-xmlsec/trunk/PKGBUILD

----------+
 PKGBUILD |   21 ++++++++++-----------
 1 file changed, 10 insertions(+), 11 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2023-04-06 15:10:13 UTC (rev 1439411)
+++ PKGBUILD    2023-04-06 15:14:13 UTC (rev 1439412)
@@ -2,28 +2,27 @@
 
 pkgname=python-xmlsec
 pkgver=1.3.13
-pkgrel=1
+_commit=b483b644b6033e539f303509f5ee85bebf178a73
+pkgrel=2
 pkgdesc="Python bindings for the XML Security Library"
 url="https://github.com/mehcode/python-xmlsec";
 license=('MIT')
 arch=('x86_64')
 depends=('python-lxml' 'xmlsec')
-makedepends=('python-pkgconfig' 'python-setuptools-scm' 'python-wheel')
+makedepends=('git' 'python-pkgconfig' 'python-setuptools-scm' 'python-wheel')
 checkdepends=('python-hypothesis' 'python-pytest')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/mehcode/python-xmlsec/archive/$pkgver.tar.gz";)
-sha512sums=('a79c8bddf4e7eef8fc1ccf7c9045b7486a05e9192481b2ce351a20c2511a1992fc91d28be8feb9ad3dd4372ba630521bdf79152001775e17813bad4af4c4e34c')
+source=("git+https://github.com/mehcode/python-xmlsec.git#commit=$_commit";)
+sha512sums=('SKIP')
 
-export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
-
 build() {
-  cd python-xmlsec-$pkgver
+  cd python-xmlsec
   python setup.py build
 }
 
 check() {
-  cd python-xmlsec-$pkgver
+  cd python-xmlsec
   # https://github.com/mehcode/python-xmlsec/issues/84
-  PYTHONPATH="$PWD/build/lib.linux-$CARCH-cpython-310" pytest \
+  PYTHONPATH="$PWD/build/lib.linux-$CARCH-cpython-311" pytest \
     --deselect 'tests/test_doc_examples.py::test_doc_example[encrypt.py]' \
     --deselect 'tests/test_doc_examples.py::test_doc_example[sign.py]' \
     --deselect 'tests/test_doc_examples.py::test_doc_example[verify.py]'
@@ -30,7 +29,7 @@
 }
 
 package() {
-  cd python-xmlsec-$pkgver
+  cd python-xmlsec
   python setup.py install --root="$pkgdir" --optimize=1
-  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
 }

Reply via email to