# Maintainer: George Rawlinson # Contributor: Felix Yan # Contributor: Ismael Carnales # Contributor: Sergey Mastykov pkgname=autopep8 pkgver=2.0.2 pkgrel=2 epoch=1 pkgdesc='A tool that automatically formats Python code to conform to the PEP 8 style guide' arch=('any') url='https://github.com/hhatto/autopep8' license=('MIT') depends=( 'python' 'python-pycodestyle' 'python-tomli' ) makedepends=( 'git' 'python-build' 'python-installer' 'python-wheel' 'python-setuptools' ) checkdepends=('python-pytest') _commit='6e6d4ba4a043da1a56ca0ec7280a7d4f40283215' source=("$pkgname::git+$url#commit=$_commit") sha512sums=('SKIP') b2sums=('SKIP') pkgver() { cd "$pkgname" git describe --tags | sed 's/^v//' } build() { cd "$pkgname" python -m build --wheel --no-isolation } check() { cd "$pkgname" pytest -v } package() { cd "$pkgname" python -m installer --destdir="$pkgdir" dist/*.whl # license install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE } # vim:set ts=2 sw=2 et: