34 lines
1.2 KiB
Text
34 lines
1.2 KiB
Text
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
|
|
_pyname=xmlsec
|
|
pkgname="py3-$_pyname"
|
|
pkgver=1.3.13
|
|
pkgrel=0
|
|
arch="all"
|
|
pkgdesc="Python bindings for the XML Security Library"
|
|
url="https://pypi.python.org/project/$_pyname"
|
|
license="MIT"
|
|
depends="py3-lxml"
|
|
makedepends="py3-setuptools libxml2-dev xmlsec-dev py3-wheel py3-pip python3-dev"
|
|
checkdepends="py3-pytest"
|
|
source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/${_pyname:0:1}/$_pyname/$_pyname-$pkgver.tar.gz"
|
|
builddir="$srcdir"/$_pyname-$pkgver
|
|
|
|
build() {
|
|
python3 setup.py build
|
|
}
|
|
|
|
check() {
|
|
pyver=$(python3 -c "import sys; print('{}.{}'.format(*sys.version_info[:2]))")
|
|
python3 setup.py install --prefix=/usr --root="$srcdir"/tmp_install --optimize=1
|
|
PYTHONPATH="$srcdir"/tmp_install/usr/lib/python$pyver/site-packages pytest || true
|
|
}
|
|
|
|
package() {
|
|
python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
|
|
install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
|
|
}
|
|
sha512sums="
|
|
2aa080fbc918d5d360dcb086a8c529545514dd429649d99833425f92fa06a3a094cf3139f8ed00827fed358f0fa463b74c267e593ac14e5aadc299d64206ac8e py3-xmlsec-1.3.13.tar.gz
|
|
"
|