35 lines
915 B
Bash
35 lines
915 B
Bash
# Template file for 'python-isort'
|
|
pkgname=python-isort
|
|
version=4.3.4
|
|
revision=1
|
|
noarch=yes
|
|
wrksrc="isort-${version}"
|
|
build_style=python-module
|
|
pycompile_module="isort"
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
depends="python-setuptools python-futures"
|
|
short_desc="Python2 utility/library to sort imports"
|
|
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
|
homepage="https://github.com/timothycrosley/isort"
|
|
license="MIT"
|
|
distfiles="${PYPI_SITE}/i/isort/isort-${version}.tar.gz"
|
|
checksum=b9c40e9750f3d77e6e4d441d8b0266cf555e7cdabdcff33c4fd06366ca761ef8
|
|
alternatives="isort:isort:/usr/bin/isort2"
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|
|
|
|
python3-isort_package() {
|
|
noarch=yes
|
|
pycompile_module="isort"
|
|
depends="python3-setuptools"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
alternatives="isort:isort:/usr/bin/isort3"
|
|
pkg_install() {
|
|
vmove usr/bin/isort3
|
|
vmove usr/lib/python3*
|
|
vlicense LICENSE
|
|
}
|
|
}
|