67e1f1a6bf
This flag should be set for packages that import pkg_resources and thus need setuptools after the build step. Set this flag for packages that need it and bump PKGREVISION.
36 lines
1.1 KiB
Makefile
36 lines
1.1 KiB
Makefile
# $NetBSD: Makefile,v 1.5 2022/01/05 15:41:08 wiz Exp $
|
|
|
|
DISTNAME= pytest-benchmark-3.4.1
|
|
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/py//}
|
|
PKGREVISION= 2
|
|
CATEGORIES= devel python
|
|
MASTER_SITES= ${MASTER_SITE_PYPI:=p/pytest-benchmark/}
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= https://github.com/ionelmc/pytest-benchmark
|
|
COMMENT= Pytest support for benchmarking
|
|
LICENSE= 2-clause-bsd
|
|
|
|
DEPENDS+= ${PYPKGPREFIX}-cpuinfo-[0-9]*:../../sysutils/py-cpuinfo
|
|
DEPENDS+= ${PYPKGPREFIX}-elasticsearch-[0-9]*:../../databases/py-elasticsearch
|
|
DEPENDS+= ${PYPKGPREFIX}-pygal-[0-9]*:../../graphics/py-pygal
|
|
TEST_DEPENDS+= ${PYPKGPREFIX}-freezegun-[0-9]*:../../devel/py-freezegun
|
|
TEST_DEPENDS+= ${PYPKGPREFIX}-test>=3.8:../../devel/py-test
|
|
|
|
USE_LANGUAGES= # none
|
|
|
|
PYTHON_VERSIONS_INCOMPATIBLE= 27 # py-pygal
|
|
|
|
USE_PKG_RESOURCES= yes
|
|
|
|
post-install:
|
|
.for bin in py.test-benchmark pytest-benchmark
|
|
cd ${DESTDIR}${PREFIX}/bin && \
|
|
${MV} ${bin} ${bin}-${PYVERSSUFFIX} || ${TRUE}
|
|
.endfor
|
|
|
|
do-test:
|
|
cd ${WRKSRC} && ${SETENV} ${TEST_ENV} py.test-${PYVERSSUFFIX}
|
|
|
|
.include "../../lang/python/egg.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|