void-packages/srcpkgs/black/template

26 lines
856 B
Bash

# Template file for 'black'
pkgname=black
version=22.10.0
revision=2
build_style=python3-pep517
hostmakedepends="hatchling hatch-vcs"
depends="python3-click python3-platformdirs python3-tomli python3-pathspec python3-mypy_extensions"
checkdepends="${depends} python3-pytest-xdist python3-aiohttp python3-colorama python3-uvloop
python3-ipython python3-tokenize-rt"
short_desc="Uncompromising Python code formatter"
maintainer="icp <pangolin@vivaldi.net>"
license="MIT"
homepage="https://github.com/psf/black"
changelog="https://raw.githubusercontent.com/psf/black/main/CHANGES.md"
distfiles="${PYPI_SITE}/b/black/black-${version}.tar.gz"
checksum=f513588da599943e0cde4e32cc9879e825d58720d6557062d1098c5ad80080e1
make_check_pre="env PYTHONPATH=src"
post_check() {
PYTHONPATH=src python3 -m black --check src tests
}
post_install() {
vlicense LICENSE
}