mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-17 19:46:52 +02:00
55 lines
1.3 KiB
Text
55 lines
1.3 KiB
Text
# Contributor: Guy Godfroy <guy.godfroy@gugod.fr>
|
|
# Maintainer: Guy Godfroy <guy.godfroy@gugod.fr>
|
|
pkgname=py3-xsdata
|
|
pkgver=25.4
|
|
pkgrel=0
|
|
pkgdesc="Naive XML & JSON Bindings for python"
|
|
url="https://github.com/tefra/xsdata"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="
|
|
py3-click
|
|
py3-click-default-group
|
|
py3-docformatter
|
|
py3-jinja2
|
|
py3-toposort
|
|
ruff
|
|
"
|
|
makedepends="
|
|
py3-gpep517
|
|
py3-setuptools
|
|
py3-wheel
|
|
"
|
|
checkdepends="
|
|
py3-lxml
|
|
py3-pytest-benchmark
|
|
py3-pytest-forked
|
|
py3-requests
|
|
"
|
|
subpackages="$pkgname-pyc"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/tefra/xsdata/archive/refs/tags/v$pkgver.tar.gz
|
|
typing.patch
|
|
"
|
|
builddir="$srcdir/xsdata-$pkgver"
|
|
|
|
build() {
|
|
gpep517 build-wheel \
|
|
--wheel-dir .dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
|
.testenv/bin/python3 -m installer .dist/*.whl
|
|
.testenv/bin/python3 -m pytest --forked
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
.dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
9820b0594c0b8eb65894348176498cc11d052c2d8d9505187bbcbb176a8804d2df95c0e19b8241aa09a76be24420d37054c024f6b850927d484a5861b7877d95 py3-xsdata-25.4.tar.gz
|
|
c11ac5ff6ea13e0735f96fc60f67c9dd1f4480e9e269424754012ba75064cc449232671b421610b37739c9d19b87fc760c4d3c953435787dfc6fb597c21860f1 typing.patch
|
|
"
|