pkgsrc/devel/py-test-mock/Makefile
adam 0f08cdd0ac 1.6.2:
* Provide source package in ``tar.gz`` format and remove obsolete ``MANIFEST.in``.

1.6.1:
* Fix ``mocker.resetall()`` by ignoring mocker objects which don't have a
  ``resetall`` method, like for example ``patch.dict``.
2017-07-18 05:02:03 +00:00

27 lines
797 B
Makefile

# $NetBSD: Makefile,v 1.4 2017/07/18 05:02:03 adam Exp $
DISTNAME= pytest-mock-1.6.2
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/py//}
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_PYPI:=p/pytest-mock/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://pypi.python.org/pypi/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 ${PYVERSSUFFIX} == "2.7"
DEPENDS+= ${PYPKGPREFIX}-mock-[0-9]*:../../devel/py-mock
.endif
# needs to be installed first
do-test:
cd ${WRKSRC} && py.test-${PYVERSSUFFIX}
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"