void-packages/srcpkgs/black/template
2021-10-09 08:01:50 -04:00

32 lines
1.3 KiB
Bash

# Template file for 'black'
pkgname=black
version=21.9b0
revision=2
build_style=python3-module
# Disable tests that require `black` in the search path for commands.
make_check_args="--deselect tests/test_primer.py::PrimerLibTests::test_gen_check_output
--deselect tests/test_primer.py::PrimerLibTests::test_process_queue
--deselect tests/test_primer.py::PrimerCLITests::test_async_main"
hostmakedepends="python3-setuptools python3-setuptools_scm"
depends="python3-click python3-platformdirs python3-tomli
python3-mypy_extensions python3-pathspec python3-regex
python3-typing_extensions"
checkdepends="python3-typed-ast python3-aiohttp python3-aiohttp-cors
python3-pytest python3-parameterized python3-ipython python3-tokenize-rt
$depends"
short_desc="Uncompromising Python code formatter"
maintainer="Orphaned <orphan@voidlinux.org>"
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=7de4cfc7eb6b710de325712d40125689101d21d25283eed7e9998722cf10eb91
pre_build() {
# <https://gitweb.gentoo.org/repo/gentoo.git/tree/dev-python/black/black-21.8_beta0.ebuild#n45>.
vsed -i '/setuptools_scm/s:~=:>=:' setup.cfg
}
post_install() {
vlicense LICENSE
}