Date: Thursday, April 6, 2023 @ 15:14:22
  Author: felixonmars
Revision: 1439413

archrelease: copy trunk to community-staging-x86_64

Added:
  python-xmlsec/repos/community-staging-x86_64/
  python-xmlsec/repos/community-staging-x86_64/PKGBUILD
    (from rev 1439412, python-xmlsec/trunk/PKGBUILD)

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

Copied: python-xmlsec/repos/community-staging-x86_64/PKGBUILD (from rev 
1439412, python-xmlsec/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD                           (rev 0)
+++ community-staging-x86_64/PKGBUILD   2023-04-06 15:14:22 UTC (rev 1439413)
@@ -0,0 +1,35 @@
+# Maintainer: Felix Yan <[email protected]>
+
+pkgname=python-xmlsec
+pkgver=1.3.13
+_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=('git' 'python-pkgconfig' 'python-setuptools-scm' 'python-wheel')
+checkdepends=('python-hypothesis' 'python-pytest')
+source=("git+https://github.com/mehcode/python-xmlsec.git#commit=$_commit";)
+sha512sums=('SKIP')
+
+build() {
+  cd python-xmlsec
+  python setup.py build
+}
+
+check() {
+  cd python-xmlsec
+  # https://github.com/mehcode/python-xmlsec/issues/84
+  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]'
+}
+
+package() {
+  cd python-xmlsec
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}

Reply via email to