pkgsrc/devel/py-hatch-fancy-pypi-readme/Makefile
wiz 5ad63be096 py-hatch-fancy-pypi-readme: fix PLIST.
Bump PKGREVISION.

Fix pkglint while here.
2022-09-09 22:47:53 +00:00

35 lines
1.1 KiB
Makefile

# $NetBSD: Makefile,v 1.2 2022/09/09 22:47:53 wiz Exp $
DISTNAME= hatch_fancy_pypi_readme-22.3.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/_/-/g}
PKGREVISION= 1
CATEGORIES= devel python
MASTER_SITES= ${MASTER_SITE_PYPI:=h/hatch-fancy-pypi-readme/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://github.com/hynek/hatch-fancy-pypi-readme
COMMENT= Fancy PyPI READMEs with Hatch
LICENSE= mit
DEPENDS+= ${PYPKGPREFIX}-hatchling>=0.21.0:../../devel/py-hatchling
DEPENDS+= ${PYPKGPREFIX}-tomli-[0-9]*:../../textproc/py-tomli
TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
USE_LANGUAGES= # none
PYTHON_VERSIONS_INCOMPATIBLE= 27
.include "../../lang/python/pyversion.mk"
.if ${_PYTHON_VERSION} < 38
DEPENDS+= ${PYPKGPREFIX}-typing-extensions-[0-9]*:../../devel/py-typing-extensions
.endif
post-install:
cd ${DESTDIR}${PREFIX}/bin && \
${MV} hatch-fancy-pypi-readme hatch-fancy-pypi-readme-${PYVERSSUFFIX} || ${TRUE}
do-test:
cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX} tests
.include "../../lang/python/wheel.mk"
.include "../../mk/bsd.pkg.mk"