void-packages/srcpkgs/python-pycodestyle/template
2020-05-20 21:39:41 +02:00

32 lines
929 B
Bash

# Template file for 'python-pycodestyle'
pkgname=python-pycodestyle
version=2.6.0
revision=1
archs=noarch
wrksrc="pycodestyle-${version}"
build_style=python-module
hostmakedepends="python-setuptools python3-setuptools"
depends="python-setuptools"
short_desc="Python2 style guide checker (formerly called pep8)"
maintainer="Alessio Sergi <al3hex@gmail.com>"
license="MIT"
homepage="https://github.com/PyCQA/pycodestyle"
distfiles="${PYPI_SITE}/p/pycodestyle/pycodestyle-${version}.tar.gz"
checksum=c58a7d2815e0e8d7972bf1803331fb0152f867bd89adf8a01dfd55085434192e
alternatives="pycodestyle:pycodestyle:/usr/bin/pycodestyle2"
post_install() {
vlicense LICENSE
}
python3-pycodestyle_package() {
archs=noarch
depends="python3-setuptools"
short_desc="${short_desc/Python2/Python3}"
alternatives="pycodestyle:pycodestyle:/usr/bin/pycodestyle3"
pkg_install() {
vmove usr/bin/*3
vmove usr/lib/python3*
vlicense LICENSE
}
}