# Contributor: Fabian Affolter # Contributor: Jakub Jirutka # Maintainer: Fabian Affolter pkgname=py3-yaml _pkgname=PyYAML pkgver=5.2 pkgrel=0 pkgdesc="Python3 bindings for YAML" url="http://pyyaml.org" arch="all" license="MIT" makedepends="python3-dev yaml-dev cython" source="$_pkgname-$pkgver.tar.gz::https://github.com/yaml/pyyaml/archive/$pkgver.tar.gz" builddir="$srcdir/pyyaml-$pkgver" replaces="py-yaml" # Backwards compatibility provides="py-yaml=$pkgver-r$pkgrel" # Backwards compatibility prepare() { default_prepare rm -f ext/_yaml.c } build() { python3 setup.py --with-libyaml build } check() { python3 setup.py test } package() { python3 setup.py install --prefix=/usr --root="$pkgdir" } sha512sums="8d8ec87cf5ce7f4299da5a7ffbaee60372bf1606d6e527f0897cde7cea3234100502767c0975027151bc99549d9d8edf243c003ea08948670f367e9778abdc89 PyYAML-5.2.tar.gz"