# Contributor: Oleg Titov # Maintainer: Oleg Titov pkgname=py3-plac pkgver=1.1.0 pkgrel=0 pkgdesc="Parsing the command line the easy way" url="https://github.com/micheles/plac" arch="noarch" license="BSD-2-Clause" depends="python3" makedepends="py3-setuptools" checkdepends="py3-pytest" subpackages="$pkgname-doc" source="$pkgname-$pkgver.tar.gz::https://github.com/micheles/plac/archive/$pkgver.tar.gz" builddir="$srcdir/plac-$pkgver" build() { python3 setup.py build } check() { PYTHONPATH="$PWD/build/lib" pytest-3 } package() { python3 setup.py install --prefix=/usr --root="$pkgdir" install -Dm644 README.rst "$pkgdir/usr/share/doc/$pkgname/README.rst" } sha512sums="99f218e8f70ad2a626faf836790b88d8fa429a7e3c316affe68b04cd019a35de5f9537c9badc22220e60da6117f5942ed3c9e77d3f97587151fb995fd9879238 py3-plac-1.1.0.tar.gz"