32 lines
1.3 KiB
Bash
32 lines
1.3 KiB
Bash
# Template file for 'black'
|
|
pkgname=black
|
|
version=21.8b0
|
|
revision=1
|
|
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=570608d28aa3af1792b98c4a337dbac6367877b47b12b88ab42095cfc1a627c2
|
|
|
|
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
|
|
}
|