75 lines
1.9 KiB
Bash
75 lines
1.9 KiB
Bash
name='flake8'
|
|
version='7.3.0'
|
|
release='2'
|
|
desc='The modular source code checker: pep8, pyflakes and co'
|
|
desc_ru='Модульная проверка исходного кода: pep8, pyflakes и другие'
|
|
homepage='https://flake8.pycqa.org'
|
|
maintainer="Evgeny Khramov <xpamych@yandex.ru>"
|
|
maintainer="Евгений Храмов <xpamych@yandex.ru>"
|
|
architectures=('all')
|
|
license=('MIT')
|
|
provides=('flake8')
|
|
conflicts=('flake8' 'flake8-git')
|
|
|
|
deps=(
|
|
'python3-pyflakes'
|
|
'python3-mccabe'
|
|
'python3-pycodestyle'
|
|
'python3-entrypoints'
|
|
)
|
|
deps_alt=(
|
|
'python3-module-pyflakes'
|
|
'python3-module-mccabe'
|
|
'python3-module-pycodestyle'
|
|
'python3-module-entrypoints'
|
|
)
|
|
deps_arch=(
|
|
'python-pyflakes'
|
|
'python-mccabe'
|
|
'python-pycodestyle'
|
|
'python-entrypoints'
|
|
)
|
|
deps_debian=("${deps[@]}")
|
|
deps_fedora=("${deps[@]}")
|
|
deps_redos=("${deps[@]}")
|
|
deps_rhel=("${deps[@]}")
|
|
deps_rosa=("${deps[@]}")
|
|
|
|
build_deps=(
|
|
'python3-setuptools'
|
|
)
|
|
|
|
build_deps_alt=('python3-module-setuptools')
|
|
build_deps_arch=('python-setuptools')
|
|
build_deps_debian=("${build_deps[@]}")
|
|
build_deps_fedora=("${build_deps[@]}")
|
|
build_deps_redos=("${build_deps[@]}")
|
|
build_deps_rhel=("${build_deps[@]}")
|
|
build_deps_rosa=("${build_deps[@]}")
|
|
|
|
sources=("https://github.com/PyCQA/flake8/archive/${version}/${name}-${version}.tar.gz")
|
|
checksums=('SKIP')
|
|
|
|
prepare() {
|
|
sed -i -e 's/,<[0-9=.]*//' flake8-${version}/setup.cfg
|
|
|
|
sed -i '/error/a \ ignore:Creating a LegacyVersion has been deprecated and will be removed in the next major release:DeprecationWarning' flake8-${version}/pytest.ini
|
|
}
|
|
|
|
build() {
|
|
cd flake8-$version
|
|
python setup.py build
|
|
}
|
|
|
|
package() {
|
|
cd flake8-$version
|
|
python setup.py install --root="${pkgdir}" --prefix=/usr --optimize=1
|
|
install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$name/LICENSE
|
|
}
|
|
|
|
files() {
|
|
files-find-bin
|
|
files-find ./usr/lib/python*/site-packages
|
|
files-find-share "licenses/$name"
|
|
}
|