pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/py-test-mock Import py-test-mock-1.6.0 as devel/...
details: https://anonhg.NetBSD.org/pkgsrc/rev/d37d5d9288d8
branches: trunk
changeset: 360633:d37d5d9288d8
user: wiz <wiz%pkgsrc.org@localhost>
date: Tue Apr 04 14:02:44 2017 +0000
description:
Import py-test-mock-1.6.0 as devel/py-test-mock.
This plugin installs a mocker fixture which is a thin-wrapper around
the patching API provided by the mock package, but with the benefit
of not having to worry about undoing patches at the end of a test.
diffstat:
devel/py-test-mock/DESCR | 3 +++
devel/py-test-mock/Makefile | 23 +++++++++++++++++++++++
devel/py-test-mock/PLIST | 13 +++++++++++++
devel/py-test-mock/distinfo | 6 ++++++
4 files changed, 45 insertions(+), 0 deletions(-)
diffs (61 lines):
diff -r ad01c790eb07 -r d37d5d9288d8 devel/py-test-mock/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-test-mock/DESCR Tue Apr 04 14:02:44 2017 +0000
@@ -0,0 +1,3 @@
+This plugin installs a mocker fixture which is a thin-wrapper around
+the patching API provided by the mock package, but with the benefit
+of not having to worry about undoing patches at the end of a test.
diff -r ad01c790eb07 -r d37d5d9288d8 devel/py-test-mock/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-test-mock/Makefile Tue Apr 04 14:02:44 2017 +0000
@@ -0,0 +1,23 @@
+# $NetBSD: Makefile,v 1.1 2017/04/04 14:02:44 wiz Exp $
+
+DISTNAME= pytest-mock-1.6.0
+PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/py//}
+CATEGORIES= devel
+MASTER_SITES= ${MASTER_SITE_PYPI:=p/pytest-mock/}
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+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-[0-9]*:../../devel/py-test
+DEPENDS+= ${PYPKGPREFIX}-mock-[0-9]*:../../devel/py-mock
+
+# needs to be installed first
+# one test failure as of 1.6.0
+# https://github.com/pytest-dev/pytest-mock/issues/81
+do-test:
+ cd ${WRKSRC} && py.test-${PYVERSSUFFIX}
+
+.include "../../lang/python/egg.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r ad01c790eb07 -r d37d5d9288d8 devel/py-test-mock/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-test-mock/PLIST Tue Apr 04 14:02:44 2017 +0000
@@ -0,0 +1,13 @@
+@comment $NetBSD: PLIST,v 1.1 2017/04/04 14:02:44 wiz Exp $
+${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
+${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
+${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/entry_points.txt
+${PYSITELIB}/${EGG_INFODIR}/requires.txt
+${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+${PYSITELIB}/_pytest_mock_version.py
+${PYSITELIB}/_pytest_mock_version.pyc
+${PYSITELIB}/_pytest_mock_version.pyo
+${PYSITELIB}/pytest_mock.py
+${PYSITELIB}/pytest_mock.pyc
+${PYSITELIB}/pytest_mock.pyo
diff -r ad01c790eb07 -r d37d5d9288d8 devel/py-test-mock/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-test-mock/distinfo Tue Apr 04 14:02:44 2017 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2017/04/04 14:02:44 wiz Exp $
+
+SHA1 (pytest-mock-1.6.0.tar.gz) = d468000677ef337d9f59d34859837fa0dea85409
+RMD160 (pytest-mock-1.6.0.tar.gz) = 6b350c9f5cdc1864928073bc94001a5782a3e76c
+SHA512 (pytest-mock-1.6.0.tar.gz) = c3b897be9156d57d7012e95b620c543500b849d7076224e3328d3783311210c57141dfb82c01bb98e5e419125dce0f68f6631bd610f4909f5ac1798458a7949f
+Size (pytest-mock-1.6.0.tar.gz) = 17780 bytes
Home |
Main Index |
Thread Index |
Old Index