pkgname = "python-black" pkgver = "25.1.0" pkgrel = 1 build_style = "python_pep517" hostmakedepends = ["python-build", "python-installer", "python-hatch_vcs"] depends = [ "python-click", "python-mypy_extensions", "python-packaging", "python-pathspec", "python-platformdirs", ] checkdepends = [ "python-aiohttp", "python-ipython", "python-pytest", "python-pytest-xdist", "python-tokenize_rt", *depends, ] provides = [self.with_pkgver("black")] pkgdesc = "Python formatting tool" license = "MIT" url = "https://black.readthedocs.io" source = f"$(PYPI_SITE)/b/black/black-{pkgver}.tar.gz" sha256 = "33496d5cd1222ad73391352b4ae8da15253c5de89b93a80b3e2c8d9a19ec2666" # unpackaged checkdepends options = ["!check"] def post_install(self): self.install_license("LICENSE")