# Contributor: Peter Bui # Maintainer: Fabian Affolter pkgname=py3-flake8 pkgver=6.1.0 pkgrel=0 pkgdesc="modular source code checker" url="https://github.com/PyCQA/flake8" arch="noarch" license="MIT" depends="py3-pyflakes py3-pycodestyle py3-mccabe" makedepends="py3-setuptools" checkdepends="py3-pytest py3-pbr py3-atomicwrites py3-attrs py3-pluggy py3-six py3-mock" subpackages="$pkgname-pyc" source="https://github.com/PyCQA/flake8/archive/refs/tags/$pkgver/py3-flake8-$pkgver.tar.gz" builddir="$srcdir/flake8-$pkgver" replaces="py-flake8" # Backwards compatibility provides="py-flake8=$pkgver-r$pkgrel" # Backwards compatibility build() { python3 setup.py build } check() { python3 -m venv --clear --without-pip --system-site-packages testenv testenv/bin/python3 setup.py install testenv/bin/python3 -m pytest -v \ --deselect=tests/integration/test_api_legacy.py::test_legacy_api \ --deselect=tests/integration/test_main.py \ --deselect=tests/integration/test_plugins.py \ --deselect=tests/unit/test_setuptools_command.py::test_package_files_removes_submodules \ --deselect=tests/unit/plugins/pycodestyle_test.py::test_up_to_date } package() { mkdir -p "$pkgdir"/usr/bin python3 setup.py install --skip-build --root="$pkgdir" } sha512sums=" a44d245b023acbb89e64071f6cb76f5543e538472a8815fa329a3b3671133cc6f96f246d83877a2a9ac91c32ecdf65858f8edf996efba77906af74b1632b74c8 py3-flake8-6.1.0.tar.gz "