# Contributor: Sasha Gerrand # Maintainer: Sasha Gerrand pkgname=py3-schema _pkgname=schema pkgver=0.7.0 pkgrel=0 pkgdesc="Schema is a library for validating Python data structures" url="https://github.com/keleshev/$_pkgname" arch="noarch" license="MIT" depends="python3" checkdepends="py3-pytest py3-mock" makedepends="py3-setuptools" source="$pkgname-$pkgver.tar.gz::https://github.com/keleshev/$_pkgname/archive/v$pkgver.tar.gz" builddir="$srcdir/$_pkgname-$pkgver" build() { python3 setup.py build } check() { python3 -m pytest } package() { PYTHONPATH="$PWD" python3 setup.py install --prefix=/usr --root="$pkgdir" } sha512sums="2ea09f3111bcb22d70791159ca35098d230e93306d1d8ed9d44da0d8d29d740c5682620ce4b1465d9c2dfc7bd0bb50cce115393cd6d59c9a6e199381048e379e py3-schema-0.7.0.tar.gz"