void-packages/srcpkgs/python-isort/template
2019-07-07 15:55:45 +02:00

42 lines
1.1 KiB
Bash

# Template file for 'python-isort'
pkgname=python-isort
version=4.3.21
revision=1
archs=noarch
wrksrc="isort-${version}"
build_style=python-module
pycompile_module="isort"
hostmakedepends="python-setuptools python3-setuptools"
depends="python-setuptools python-futures"
checkdepends="python-pytest python3-pytest
python-backports.functools_lru_cache"
short_desc="Python2 utility/library to sort imports"
maintainer="Alessio Sergi <al3hex@gmail.com>"
license="MIT"
homepage="https://github.com/timothycrosley/isort"
changelog="https://raw.githubusercontent.com/timothycrosley/isort/master/CHANGELOG.md"
distfiles="${PYPI_SITE}/i/isort/isort-${version}.tar.gz"
checksum=54da7e92468955c4fceacd0c86bd0ec997b0e1ee80d97f67c35a78b719dccab1
alternatives="isort:isort:/usr/bin/isort2"
do_check() {
pytest test_isort.py
pytest3 test_isort.py
}
post_install() {
vlicense LICENSE
}
python3-isort_package() {
archs=noarch
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
}
}