2022-12-27 20:40:33 +00:00
|
|
|
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
2024-04-14 21:38:07 +00:00
|
|
|
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
2022-12-27 20:40:33 +00:00
|
|
|
_pyname=xmlsec
|
|
|
|
pkgname="py3-$_pyname"
|
|
|
|
pkgver=1.3.13
|
2024-04-14 21:38:07 +00:00
|
|
|
pkgrel=6
|
2023-08-11 19:49:05 +00:00
|
|
|
arch="all"
|
2022-12-27 20:40:33 +00:00
|
|
|
pkgdesc="Python bindings for the XML Security Library"
|
|
|
|
url="https://pypi.python.org/project/$_pyname"
|
|
|
|
license="MIT"
|
2024-01-05 23:55:33 +00:00
|
|
|
depends="
|
|
|
|
py3-lxml
|
|
|
|
xmlsec
|
|
|
|
"
|
|
|
|
makedepends="
|
|
|
|
py3-gpep517
|
|
|
|
py3-setuptools
|
|
|
|
py3-setuptools_scm
|
|
|
|
py3-pkgconfig
|
|
|
|
py3-wheel
|
|
|
|
python3-dev
|
|
|
|
libxml2-dev
|
|
|
|
xmlsec-dev
|
|
|
|
"
|
2022-12-27 20:40:33 +00:00
|
|
|
checkdepends="py3-pytest"
|
2023-05-05 22:46:56 +00:00
|
|
|
source="
|
|
|
|
$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/${_pyname:0:1}/$_pyname/$_pyname-$pkgver.tar.gz
|
|
|
|
253_pkcs11-support.patch
|
2024-01-05 23:55:33 +00:00
|
|
|
264_xmlsec3-support.patch
|
2024-01-20 04:17:24 +00:00
|
|
|
280_fix-function-deprecation.patch
|
2023-05-05 22:46:56 +00:00
|
|
|
"
|
2022-12-27 20:40:33 +00:00
|
|
|
builddir="$srcdir"/$_pyname-$pkgver
|
|
|
|
|
|
|
|
build() {
|
2024-01-05 23:55:33 +00:00
|
|
|
gpep517 build-wheel \
|
|
|
|
--wheel-dir dist \
|
|
|
|
--output-fd 3 3>&1 >&2
|
|
|
|
|
2022-12-27 20:40:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
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() {
|
2023-01-12 18:48:03 +00:00
|
|
|
python3 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
|
2022-12-27 20:40:33 +00:00
|
|
|
install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
|
|
|
|
}
|
|
|
|
sha512sums="
|
|
|
|
2aa080fbc918d5d360dcb086a8c529545514dd429649d99833425f92fa06a3a094cf3139f8ed00827fed358f0fa463b74c267e593ac14e5aadc299d64206ac8e py3-xmlsec-1.3.13.tar.gz
|
2023-05-05 22:46:56 +00:00
|
|
|
9155a2435d832b4dcd0260616f52eec148dca1dade76a89c23e10f017e4140024ef042b6b10c5b9435fcbf52e7dc4f7e5764dc7f5bdd7595c27b3106fab942cf 253_pkcs11-support.patch
|
2024-01-05 23:55:33 +00:00
|
|
|
d901c09a49145250dd9325476c1356f820519b9248195240584f6de62b8084205f698501a1f48e42b63fe4c7b169dcb65540edc03724ef7e9297b45216c5b481 264_xmlsec3-support.patch
|
2024-01-20 04:17:24 +00:00
|
|
|
a47d4d44a518939e72ff7213c6dcd2c391ff5e1bb2be6a1b0d0ab1ef6ed0155d81c26b8f844285883db2f8954b122e48a9b1bccf343a5344af7f1723b3fdd78d 280_fix-function-deprecation.patch
|
2022-12-27 20:40:33 +00:00
|
|
|
"
|