pkgsrc/textproc/py-black/Makefile
khorben df3dca2424 py-black: import version 20.8b1
By using Black, you agree to cede control over minutiae of hand-formatting. In
return, Black gives you speed, determinism, and freedom from pycodestyle nagging
about formatting. You will save time and mental energy for more important
matters.
2020-09-28 23:55:26 +00:00

35 lines
1.2 KiB
Makefile

# $NetBSD: Makefile,v 1.1 2020/09/28 23:55:26 khorben Exp $
DISTNAME= black-20.8b1
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= textproc devel python
MASTER_SITES= ${MASTER_SITE_PYPI:=b/black/}
MAINTAINER= root@zta.lk
HOMEPAGE= https://black.readthedocs.io/
COMMENT= Uncompromising Python code formatter
LICENSE= mit
USE_LANGUAGES= # none
BUILD_DEPENDS+= ${PYPKGPREFIX}-setuptools_scm-[0-9]*:../../devel/py-setuptools_scm
DEPENDS+= ${PYPKGPREFIX}-click>=6.5:../../devel/py-click
DEPENDS+= ${PYPKGPREFIX}-pathspec>=0.6<1:../../devel/py-pathspec
DEPENDS+= ${PYPKGPREFIX}-attrs>=18.1.0:../../devel/py-attrs
DEPENDS+= ${PYPKGPREFIX}-appdirs-[0-9]*:../../devel/py-appdirs
DEPENDS+= ${PYPKGPREFIX}-toml>=0.9.4:../../textproc/py-toml
DEPENDS+= ${PYPKGPREFIX}-typed-ast>=1.4.0:../../devel/py-typed-ast
DEPENDS+= ${PYPKGPREFIX}-regex-[0-9]*:../../textproc/py-regex
# only for blackd:
DEPENDS+= ${PYPKGPREFIX}-aiohttp>=3.3.2:../../www/py-aiohttp
DEPENDS+= ${PYPKGPREFIX}-aiohttp-cors-[0-9]*:../../www/py-aiohttp-cors
PYTHON_VERSIONS_INCOMPATIBLE= 27 # py-aiohttp
post-install:
cd ${DESTDIR}${PREFIX}/bin && for b in black black-primer blackd; \
do ${MV} $$b $$b-${PYVERSSUFFIX}; \
done
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"