ayaports/testing/py3-pyaml/APKBUILD

47 lines
989 B
Text
Raw Permalink Normal View History

2023-03-31 20:26:25 +00:00
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
2023-03-31 20:26:25 +00:00
pkgname=py3-pyaml
_pkgname="pyaml"
2023-08-30 17:55:30 +00:00
pkgver=23.7.0
pkgrel=0
arch='noarch'
pkgdesc="PyYAML-based module to produce pretty and readable YAML-serialized data"
url="https://pypi.python.org/pypi/pyaml"
2023-08-30 17:55:30 +00:00
license="WTFPL"
depends="
py3-yaml
"
makedepends="
py3-setuptools
py3-gpep517
py3-wheel
py3-installer
"
checkdepends="
py3-unidecode
py3-pytest
"
2023-03-31 20:26:25 +00:00
source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver
2023-08-30 17:55:30 +00:00
subpackages="$pkgname-pyc"
build() {
2023-08-30 17:55:30 +00:00
gpep517 build-wheel \
--wheel-dir dist \
--output-fd 3 3>&1 >&2
}
check() {
2023-08-30 17:55:30 +00:00
pytest -v
}
package() {
2023-08-30 17:55:30 +00:00
python3 -m installer -d "$pkgdir" \
dist/*.whl
}
sha512sums="
2023-08-30 17:55:30 +00:00
edbe58a3a7f1216a2463ac56af829c38b12b7194429691a92cb7f28ca926094e324d6e44d3fb64be40239dc8a6dc61d72946b107f5210ca83e73dec18b1428ef py3-pyaml-23.7.0.tar.gz
"