Date: Monday, November 9, 2020 @ 19:53:04
  Author: foutrelis
Revision: 748089

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 748088, python-xmlsec/trunk/PKGBUILD)

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

Copied: python-xmlsec/repos/community-staging-x86_64/PKGBUILD (from rev 748088, 
python-xmlsec/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD                           (rev 0)
+++ community-staging-x86_64/PKGBUILD   2020-11-09 19:53:04 UTC (rev 748089)
@@ -0,0 +1,33 @@
+# Maintainer: Felix Yan <[email protected]>
+
+pkgname=python-xmlsec
+pkgver=1.3.9
+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-pip' 'python-pkgconfig' 'python-setuptools-scm')
+checkdepends=('python-hypothesis' 'python-pytest-runner')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/mehcode/python-xmlsec/archive/$pkgver.tar.gz";)
+sha512sums=('3c212c409430297a85316e0c4f7f704be112dfda323fd0300b7d70de812d90dd4681c6a5a3cc0314d1937ebc4f8e012fac7f787bccdfb2dc699d5d6f17316b38')
+
+export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
+
+build() {
+  cd python-xmlsec-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd python-xmlsec-$pkgver
+  # https://github.com/mehcode/python-xmlsec/issues/84
+  python setup.py pytest || :
+}
+
+package() {
+  cd python-xmlsec-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}

Reply via email to