1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-15 04:05:15 +03:00
aports/community/py3-pyaml/APKBUILD
2025-01-07 06:47:12 +00:00

45 lines
1,010 B
Text

# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
pkgname=py3-pyaml
#_pkgreal is used by apkbuild-pypi to find modules at PyPI
_pkgreal=pyaml
pkgver=25.1.0
pkgrel=0
arch="noarch"
pkgdesc="PyYAML-based module to produce pretty and readable YAML-serialized data"
url="https://pypi.python.org/pypi/pyaml"
license="WTFPL"
depends="
py3-yaml
"
makedepends="
py3-setuptools
py3-gpep517
py3-wheel
"
checkdepends="
py3-unidecode
py3-pytest
"
source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/p/pyaml/pyaml-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgreal-$pkgver
subpackages="$pkgname-pyc"
build() {
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
check() {
pytest -v
}
package() {
python3 -m installer -d "$pkgdir" \
.dist/*.whl
}
sha512sums="
ab006e2ee2c4592ac2e1f8aa2afa3443e206d8147739fc561f994273a41473dfb6faf6324c2c6e9fdc46a9829424f9416b85e8a85a06495430183deca47f16ec py3-pyaml-25.1.0.tar.gz
"