New package: python-isort-4.2.5

This commit is contained in:
Alessio Sergi 2016-10-24 14:15:45 +02:00
parent 811de3588a
commit db61df8058
2 changed files with 36 additions and 0 deletions

View File

@ -0,0 +1,35 @@
# Template file for 'python-isort'
pkgname=python-isort
version=4.2.5
revision=1
noarch=yes
wrksrc="isort-${version}"
build_style=python-module
pycompile_module="isort"
hostmakedepends="python-setuptools python3-setuptools"
depends="python-setuptools"
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=56b20044f43cf6e6783fe95d054e754acca52dd43fbe9277c1bdff835537ea5c
alternatives="isort:isort:/usr/bin/isort2"
post_install() {
sed -n '/Copyright/,/SOFTWARE\./p' isort/__init__.py >LICENSE
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
}
}

1
srcpkgs/python3-isort Symbolic link
View File

@ -0,0 +1 @@
python-isort