mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-05-10 14:44:22 +02:00
45 lines
1.2 KiB
Text
45 lines
1.2 KiB
Text
# Automatically generated by apkbuild-pypi, template 4
|
|
# Maintainer: Celeste <cielesti@protonmail.com>
|
|
maintainer="Celeste <cielesti@protonmail.com>"
|
|
pkgname=py3-slidge-style-parser
|
|
pkgver=0.1.9
|
|
pkgrel=0
|
|
#_pkgreal is used by apkbuild-pypi to find modules at PyPI
|
|
_pkgreal=slidge-style-parser
|
|
pkgdesc="Style parser for Slidge"
|
|
url="https://pypi.org/project/slidge-style-parser/"
|
|
arch="all"
|
|
license="AGPL-3.0-or-later"
|
|
makedepends="cargo py3-gpep517 py3-maturin"
|
|
checkdepends="py3-pytest"
|
|
subpackages="$pkgname-pyc"
|
|
source="https://files.pythonhosted.org/packages/source/s/slidge-style-parser/slidge_style_parser-$pkgver.tar.gz"
|
|
builddir="$srcdir/slidge_style_parser-$pkgver"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
|
|
cargo fetch --locked
|
|
}
|
|
|
|
build() {
|
|
gpep517 build-wheel \
|
|
--wheel-dir .dist \
|
|
--config-json '{"build-args": "--frozen"}' \
|
|
--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
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
.dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
e6810c389251fdb4e2ccc70a22c37677c9abd4089c7be4f8725e0abf8eeeb8d98a07b2ec5ff32e95c89a0eb86c40fe1ca75054547ba3616d345b91d8ffe89b20 slidge_style_parser-0.1.9.tar.gz
|
|
"
|