2023-10-29 20:30:41 -04:00

27 lines
865 B
Bash

# Template file for 'black'
pkgname=black
version=23.10.1
revision=1
build_style=python3-pep517
hostmakedepends="hatchling hatch-vcs"
depends="python3-click python3-platformdirs python3-pathspec python3-packaging
python3-mypy_extensions"
checkdepends="${depends} python3-pytest-xdist python3-aiohttp
python3-ipython python3-tokenize-rt"
short_desc="Uncompromising Python code formatter"
maintainer="icp <pangolin@vivaldi.net>"
license="MIT"
homepage="https://black.readthedocs.io/en/stable/"
changelog="https://raw.githubusercontent.com/psf/black/main/CHANGES.md"
distfiles="${PYPI_SITE}/b/black/black-${version}.tar.gz"
checksum=1f8ce316753428ff68749c65a5f7844631aa18c8679dfd3ca9dc1a289979c258
make_check=no # TODO: https://github.com/psf/black/pull/3984
post_check() {
PYTHONPATH=src python3 -m black --check src tests
}
post_install() {
vlicense LICENSE
}