pkgsrc/devel/py-test-mock/Makefile
adam 09cb88a7b8 py-test-mock: updated to 1.13.0
1.13.0:
* The object returned by ``mocker.spy`` now also tracks any side effect
  of the spied method/function.
2019-12-11 10:32:34 +00:00

25 lines
775 B
Makefile

# $NetBSD: Makefile,v 1.20 2019/12/11 10:32:34 adam Exp $
DISTNAME= pytest-mock-1.13.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
DEPENDS+= ${PYPKGPREFIX}-test>=2.7:../../devel/py-test
BUILD_DEPENDS+= ${PYPKGPREFIX}-setuptools_scm-[0-9]*:../../devel/py-setuptools_scm
.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 "../../mk/bsd.pkg.mk"