-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
template
32 lines (30 loc) · 1.01 KB
/
template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Template file for 'python3-isort'
pkgname=python3-isort
version=5.12.0
revision=2
build_style=python3-pep517
hostmakedepends="python3-poetry-core"
depends="python3"
checkdepends="python3-pytest python3-hypothesis python3-colorama black git
python3-setuptools"
short_desc="Python3 utility/library to sort imports"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="https://github.com/PyCQA/isort"
changelog="https://raw.githubusercontent.com/PyCQA/isort/main/CHANGELOG.md"
distfiles="${PYPI_SITE}/i/isort/isort-${version}.tar.gz"
checksum=8bef7dde241278824a6d83f44a544709b065191b95b6e50894bdc722fcba0504
conflicts="python-isort>=0"
make_check=no # FIXME
do_check() {
rm -f tests/integration/test_hypothesmith.py # needs unpackaged libcst
rm -f tests/unit/test_pylama_isort.py # needs unpackaged pylama
rm -rf tmp # remove artifacts from previous unsuccessful check run
mkdir tmp
bsdtar xf dist/isort-$version-py3-none-any.whl -C tmp
PYTHONPATH=tmp pytest
rm -rf tmp
}
post_install() {
vlicense LICENSE
}