# $NetBSD: Makefile,v 1.13 2023/10/28 19:56:58 wiz Exp $ DISTNAME= codespell-2.2.6 PKGNAME= ${PYPKGPREFIX}-${DISTNAME} PKGREVISION= 1 CATEGORIES= devel python MASTER_SITES= ${MASTER_SITE_PYPI:=c/codespell/} MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= https://github.com/codespell-project/codespell COMMENT= Check code for common misspellings LICENSE= gnu-gpl-v2 TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools_scm>=6.2:../../devel/py-setuptools_scm TOOL_DEPENDS+= ${PYPKGPREFIX}-wheel-[0-9]*:../../devel/py-wheel TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test USE_LANGUAGES= # none REPLACE_PYTHON= bin/codespell PYTHON_VERSIONS_INCOMPATIBLE= 27 post-install: cd ${DESTDIR}${PREFIX}/bin && \ ${MV} codespell codespell-${PYVERSSUFFIX} || ${TRUE} do-test: cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX} .include "../../lang/python/application.mk" .include "../../lang/python/wheel.mk" .include "../../mk/bsd.pkg.mk"