# Contributor: Peter Bui # Maintainer: Fabian Affolter # NOTE: ensure compatibility with py3-flake8! (#11378) pkgname=py3-pyflakes _pkgname=${pkgname#py3-} pkgver=3.1.0 pkgrel=0 pkgdesc="passive checker of Python programs" url="https://github.com/PyCQA/pyflakes" arch="noarch" license="MIT" depends="python3" makedepends="py3-setuptools" subpackages="$pkgname-pyc" source="https://files.pythonhosted.org/packages/source/p/$_pkgname/$_pkgname-$pkgver.tar.gz" builddir="$srcdir/$_pkgname-$pkgver" replaces="py-pyflakes" # Backwards compatibility provides="py-pyflakes=$pkgver-r$pkgrel" # Backwards compatibility build() { python3 setup.py build } check() { python3 setup.py test } package() { mkdir -p "$pkgdir"/usr/bin ln -s pyflakes "$pkgdir"/usr/bin/pyflakes-3 python3 setup.py --quiet install --skip-build --root="$pkgdir" } sha512sums=" 6277eaa82a3d94f8052b3da865cfcc8e99846738b5869fca1be92bb5b9a4db0088859d811da565200e640ad0555d46e0ebcaf831cd422b84304514592270b02e pyflakes-3.1.0.tar.gz "