27 lines
811 B
Makefile
27 lines
811 B
Makefile
# $NetBSD: Makefile,v 1.22 2020/05/16 16:30:15 adam Exp $
|
|
|
|
DISTNAME= pytest-mock-2.0.0
|
|
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/py//}
|
|
CATEGORIES= devel python
|
|
MASTER_SITES= ${MASTER_SITE_PYPI:=p/pytest-mock/}
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= https://github.com/pytest-dev/pytest-mock
|
|
COMMENT= Thin-wrapper around the mock package for easier use with py.test
|
|
LICENSE= mit
|
|
|
|
BUILD_DEPENDS+= ${PYPKGPREFIX}-setuptools_scm-[0-9]*:../../devel/py-setuptools_scm
|
|
|
|
PYTHON_VERSIONED_DEPENDENCIES= test
|
|
|
|
.include "../../lang/python/pyversion.mk"
|
|
.if ${_PYTHON_VERSION} == 27
|
|
DEPENDS+= ${PYPKGPREFIX}-mock-[0-9]*:../../devel/py-mock
|
|
.endif
|
|
|
|
do-test:
|
|
cd ${WRKSRC} && pytest-${PYVERSSUFFIX}
|
|
|
|
.include "../../lang/python/egg.mk"
|
|
.include "../../lang/python/versioned_dependencies.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|