mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-23 11:15:13 +03:00
44 lines
1.5 KiB
Text
44 lines
1.5 KiB
Text
# Contributor: Peter Bui <pnutzh4x0r@gmail.com>
|
|
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
|
|
pkgname=py3-flake8
|
|
_pyname=flake8
|
|
pkgver=3.9.2
|
|
pkgrel=0
|
|
pkgdesc="modular source code checker"
|
|
url="https://gitlab.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"
|
|
source="https://files.pythonhosted.org/packages/source/f/flake8/flake8-$pkgver.tar.gz
|
|
tests-ignore-deprecated-legacy-version.patch
|
|
"
|
|
builddir="$srcdir/flake8-$pkgver"
|
|
|
|
replaces="py-flake8" # Backwards compatibility
|
|
provides="py-flake8=$pkgver-r$pkgrel" # Backwards compatibility
|
|
|
|
build() {
|
|
python3 setup.py build
|
|
}
|
|
|
|
check() {
|
|
PYTHONPATH=$PWD/build/lib 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
|
|
}
|
|
|
|
package() {
|
|
mkdir -p "$pkgdir"/usr/bin
|
|
ln -s flake8 "$pkgdir"/usr/bin/flake8-3
|
|
|
|
python3 setup.py install --prefix=/usr --root="$pkgdir"
|
|
}
|
|
|
|
sha512sums="
|
|
618fe1b35070b24395e5d4da9fa1b1f6308abf6f85d8de71b8b553f84d70d9cd7d2a6f616fa1418db9a8b5ad3efab038f4e2d7c6020c0c1bdeb8157e666911fd flake8-3.9.2.tar.gz
|
|
d2903dc3d1020839f0546ad598745f598a79131f78a8081a19665190d78703d88e2657b4cdb82f7781adfb68f38ba890d18f1b49b30091331ae9b5d3aa9bb609 tests-ignore-deprecated-legacy-version.patch
|
|
"
|