# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=py3-pykwalify
_pyname=pykwalify
pkgver=1.8.0
pkgrel=6
pkgdesc="Python YAML/JSON schema validation library"
url="https://github.com/Grokzen/pykwalify"
arch="noarch"
license="MIT"
depends="python3 py3-docopt py3-ruamel.yaml py3-dateutil"
makedepends="py3-setuptools"
checkdepends="py3-pytest py3-testfixtures"
subpackages="$pkgname-pyc"
source="https://github.com/Grokzen/pykwalify/archive/$pkgver/pykwalify-$pkgver.tar.gz"
builddir="$srcdir/$_pyname-$pkgver"

build() {
	python3 setup.py build
}

check() {
	pytest
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="cdc815017b91b3bc0e58652ca69351bee1ea0b61b3a37de1209005958314c230d80573d9b77af77d68ba54b98aa8b40d593191f8a8f3d4a2c4c693c6cb42f9e7  pykwalify-1.8.0.tar.gz"
