# Contributor: Russ Webber # Maintainer: Russ Webber pkgname="py3-pydocstyle" _pkgname="pydocstyle" pkgver="4.0.1" pkgrel=1 pkgdesc="Static analysis tool for checking compliance with Python docstring conventions" url="https://pydocstyle.org/" arch="noarch" license="MIT" depends="python3 py3-snowballstemmer" makedepends="py3-setuptools py3-pytest py3-mock py3-six" source="$_pkgname-$pkgver.tar.gz::https://github.com/PyCQA/$_pkgname/archive/$pkgver.tar.gz" builddir="$srcdir/$_pkgname-$pkgver" build() { python3 setup.py build } check() { # integration tests call pip which doesn't exist PYTHONPATH="$builddir/build/lib" py.test --deselect src/tests/test_integration.py -vv src/tests } package() { python3 setup.py install --prefix=/usr --root="$pkgdir" } sha512sums="6d1b9d1eb46185a616a6715113542a41f1085296b162da563ed18086addd5f8f14dd30d6460cf105a3b0542fc0823f47214f1b329b9dfa0c4cf211cde700aa19 pydocstyle-4.0.1.tar.gz"