# Contributor: Fabian Affolter # Contributor: Jakub Jirutka # Maintainer: Fabian Affolter pkgname=py3-yaml _pkgname=PyYAML pkgver=5.3 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="51e07dd80d4e2758429c18e55d7664b8f8e3fb2129f74655cefe3e13ac2838148432f2736d5304e107c9241bcf3e556e313aa0e71560e59df8c49bdfffd0fb9d PyYAML-5.3.tar.gz"