Skip to content
This repository has been archived by the owner on May 20, 2023. It is now read-only.

Commit

Permalink
archrelease: copy trunk to community-staging-x86_64
Browse files Browse the repository at this point in the history
git-svn-id: file:///srv/repos/svn-community/svn@1439413 9fca08f4-af9d-4005-b8df-a31f2cc04f65
  • Loading branch information
felixonmars authored and svntogit committed Apr 6, 2023
1 parent 5e419b2 commit 7d3e275
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions repos/community-staging-x86_64/PKGBUILD
Original file line number Diff line number Diff line change
@@ -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/
}

0 comments on commit 7d3e275

Please sign in to comment.