This repository has been archived by the owner on May 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 296
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
archrelease: copy trunk to community-staging-x86_64
git-svn-id: file:///srv/repos/svn-community/svn@1439413 9fca08f4-af9d-4005-b8df-a31f2cc04f65
- Loading branch information
1 parent
5e419b2
commit 7d3e275
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/ | ||
} |