FreshPorts -- devel/py-pytest-mock: Thin wrapper around the mock package for easier use with py.test


FreshPorts -- The Place For Ports [画像:notbug]As an Amazon Associate I earn from qualifying purchases.
Want a good read? Try FreeBSD Mastery: Jails (IT Mastery Book 15)
Want a good monitor light? See my photos
All times are UTC [画像:Ukraine]
The recently imposed "must be logged in" restriction is a response to increased bot traffic on the site. This affects search, commits, and vuxml pages.
Search engines are not blocked. Try using "site:www.freshports.org" and your search terms.
After the ports freeze to fix some stuff, the freeze is over. I have some work to do before FreshPorts can start processing commits again before it can start processing again. I've created an issue for that.
Port details
py-pytest-mock Thin wrapper around the mock package for easier use with py.test
3.15.1 devel on this many watch lists=1 search for ports that depend on this port Find issues related to this port Report an issue related to this port View this port on Repology. pkg-fallout 3.15.1Version of this port present on the latest quarterly branch.
Maintainer: olgeni@FreeBSD.org search for ports maintained by this maintainer
Port Added: 2017年06月26日 10:32:34
Last Update: 2026年06月26日 20:47:37
Commit Hash: 5598e30
People watching this port, also watch:: py311-Automat, freeimage, font-misc-meltho, libjxl, py311-pycparser
Also Listed In: python
License: MIT
WWW:
https://github.com/pytest-dev/pytest-mock/
Description:
This plugin provides a mocker fixture which is a thin-wrapper around the patching API provided by the mock package.
Homepage cgit ¦ Codeberg ¦ GitHub ¦ GitLab ¦ SVNWeb

Manual pages:
FreshPorts has no man page information for this port.
pkg-plist: as obtained via: make generate-plist
There is no configure plist information for this port.
USE_RC_SUBR (Service Scripts)
  • no SUBR information found for this port
Dependency lines:
  • ${PYTHON_PKGNAMEPREFIX}pytest-mock>0:devel/py-pytest-mock@${PY_FLAVOR}
To install the port:
cd /usr/ports/devel/py-pytest-mock/ && make install clean
To add the package, run one of these commands:
  • pkg install devel/py-pytest-mock
  • pkg install py312-pytest-mock
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.
NOTE: This is a Python port. Instead of py312-pytest-mock listed in the above command, you can pick from the names under the Packages section.
PKGNAME: py312-pytest-mock
Package flavors (<flavor>: <package>)
  • py312: py312-pytest-mock
distinfo:
TIMESTAMP = 1778639819 SHA256 (pytest_mock-3.15.1.tar.gz) = 1849a238f6f396da19762269de72cb1814ab44416fa73a8686deac10b0d87a0f SIZE (pytest_mock-3.15.1.tar.gz) = 34036

Packages (timestamps in pop-ups are UTC):
py39-pytest-mock
ABIaarch64amd64armv6armv7i386powerpcpowerpc64powerpc64le
FreeBSD:13:latest--n/an/an/an/an/an/a
FreeBSD:13:quarterly--n/an/an/an/an/an/a
FreeBSD:14:latest--1.10.4--3.10.0-3.10.0
FreeBSD:14:quarterly-----3.10.03.10.03.10.0
FreeBSD:15:latest--n/a-n/an/a3.10.03.10.0
FreeBSD:15:quarterly--n/a-n/an/a--
FreeBSD:16:latest--n/a-n/an/a--
 
py311-pytest-mock
ABIaarch64amd64armv6armv7i386powerpcpowerpc64powerpc64le
FreeBSD:13:latest3.10.0_13.10.0_1n/an/an/an/an/an/a
FreeBSD:13:quarterly3.10.0_13.10.0_1n/an/an/an/an/an/a
FreeBSD:14:latest---3.10.0_1----
FreeBSD:14:quarterly---3.10.0_1----
FreeBSD:15:latest--n/a3.10.0_1n/an/a--
FreeBSD:15:quarterly--n/a-n/an/a--
FreeBSD:16:latest--n/a-n/an/a--
 
py312-pytest-mock
ABIaarch64amd64armv6armv7i386powerpcpowerpc64powerpc64le
FreeBSD:13:latest--n/an/an/an/an/an/a
FreeBSD:13:quarterly--n/an/an/an/an/an/a
FreeBSD:14:latest3.15.13.15.1--3.15.1---
FreeBSD:14:quarterly3.15.13.15.1--3.15.1---
FreeBSD:15:latest3.15.13.15.1n/a-n/an/a--
FreeBSD:15:quarterly3.15.13.15.1n/a-n/an/a--
FreeBSD:16:latest3.15.13.15.1n/a-n/an/a--
 
Dependencies
NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
Build dependencies:
  1. py312-setuptools-scm>=0 : devel/py-setuptools-scm@py312
  2. py312-wheel>=0 : devel/py-wheel@py312
  3. python3.12 : lang/python312
  4. py312-build>=0 : devel/py-build@py312
  5. py312-installer>=0 : devel/py-installer@py312
Test dependencies:
  1. py312-coverage>0 : devel/py-coverage@py312
  2. py312-mock>0 : devel/py-mock@py312
  3. py312-pytest-asyncio>0 : devel/py-pytest-asyncio@py312
  4. py312-pytest>=0 : devel/py-pytest@py312
  5. python3.12 : lang/python312
Runtime dependencies:
  1. py312-pytest>=6.2.5 : devel/py-pytest@py312
  2. python3.12 : lang/python312
This port is required by:
for Run
  1. astro/py-pytest-astropy
  2. devel/py-pytest-recorder

Configuration Options:
No options to configure
Options name:
devel_py-pytest-mock
USES:
pytest python
FreshPorts was unable to extract/find any pkg message
Master Sites:
Expand this list (2 items)
Collapse this list.
  1. https://files.pythonhosted.org/packages/source/p/pytest_mock/
  2. https://pypi.org/packages/source/p/pytest_mock/
Collapse this list.

Number of commits found: 19

Commit History - (may be incomplete: for full details, see links to repositories near top of page)
CommitCreditsLog message
3.15.1
26 Jun 2026 20:47:37
commit hash: 5598e30176ed62674091067d26d8e3203dfc134b commit hash: 5598e30176ed62674091067d26d8e3203dfc134b commit hash: 5598e30176ed62674091067d26d8e3203dfc134b commit hash: 5598e30176ed62674091067d26d8e3203dfc134b files touched by this commit
Po-Chuan Hsieh (sunpoet) search for other commits by this committer
devel/py-pytest-mock: Clean up USES=python
Python 3.10 is the minimal supported Python 3.
Approved by:	portmgr (blanket)
With hat:	python
3.15.1
14 May 2026 01:01:53
commit hash: 5b6315ddef29e1f07ae9e0b8d91c4af1c2c3de2b commit hash: 5b6315ddef29e1f07ae9e0b8d91c4af1c2c3de2b commit hash: 5b6315ddef29e1f07ae9e0b8d91c4af1c2c3de2b commit hash: 5b6315ddef29e1f07ae9e0b8d91c4af1c2c3de2b files touched by this commit
Jimmy Olgeni (olgeni) search for other commits by this committer
devel/py-pytest-mock: Update to 3.15.1
Tweaks on top of the PR patch:
- Use DISTVERSION (referenced by ${DISTVERSION} in DISTNAME) instead
 of PORTVERSION.
- Add py-wheel to BUILD_DEPENDS (required by USE_PYTHON=pep517 with the
 setuptools build backend).
- Bump pytest dep to >=6.2.5 to match upstream pyproject.toml.
PR:		273337
Submitted by:	takefu
3.10.0_1
08 Mar 2025 04:05:21
commit hash: 06a08e69f3acb846ad8252945f53c3a2d211e303 commit hash: 06a08e69f3acb846ad8252945f53c3a2d211e303 commit hash: 06a08e69f3acb846ad8252945f53c3a2d211e303 commit hash: 06a08e69f3acb846ad8252945f53c3a2d211e303 files touched by this commit
Charlie Li (vishwin) search for other commits by this committer
python: bump all USE_PYTHON=distutils consumers after RUN_DEPENDS removal
Any missed ports, feel free to bump.
Any ports that need setuptools at runtime can have the devel/py-setuptools
manually added back to RUN_DEPENDS, but understand that this practice
is deprecated; see CHANGES for details.
3.10.0
29 Feb 2024 07:18:32
commit hash: 5d4139f8bdb67bd6e8328422f9762661bd0d6454 commit hash: 5d4139f8bdb67bd6e8328422f9762661bd0d6454 commit hash: 5d4139f8bdb67bd6e8328422f9762661bd0d6454 commit hash: 5d4139f8bdb67bd6e8328422f9762661bd0d6454 files touched by this commit
Charlie Li (vishwin) search for other commits by this committer
devel/py-setuptools-scm: update to 8.0.4
Directory and PORTNAME changed to match normalised name in release
tarball; consumers updated to match.
Although setuptools itself is specified as a run dependency in the
Python package metadata, it is currently left out here to prevent
environment pollution until at least PR 270510 is committed.
Additionally, this version of setuptools-scm requires setuptools>=61,
which means this version is only meant for USE_PYTHON=pep517 ports
as all USE_PYTHON=distutils ports will switch to devel/py-setuptools58
also after PR 270510. science/py-emmet-core is switched to
devel/py-setuptools_scm7 accordingly, as it specifies setuptools-scm<8.
devel/py-{flit-scm,hatch-vcs} have ${PY_SETUPTOOLS} added to
RUN_DEPENDS to compensate.
Further details: https://wiki.freebsd.org/Python/setuptools
Reported by: yuri
Co-authored by: matthew
Exp-run by: antoine (earlier iteration)
Approved by: yuri (science/py-emmet-core, previous iteration)
PR: 272134
Differential Revision: https://reviews.freebsd.org/D39288 
3.10.0
27 Jun 2023 19:34:34
commit hash: 3d9a815d9c5acbb71f4bb07738bdeab4879feacb commit hash: 3d9a815d9c5acbb71f4bb07738bdeab4879feacb commit hash: 3d9a815d9c5acbb71f4bb07738bdeab4879feacb commit hash: 3d9a815d9c5acbb71f4bb07738bdeab4879feacb files touched by this commit
Rene Ladan (rene) search for other commits by this committer
all: remove explicit versions in USES=python for "3.x+"
The logic in USES=python will automatically convert this to 3.8+ by
itself.
Adjust two ports that only had Python 3.7 mentioned but build fine
on Python 3.8 too.
finance/quickfix: mark BROKEN with PYTHON
libtool: compile: c++ -DHAVE_CONFIG_H -I. -I../.. -I -I. -I.. -I../.. -I../C++
-DLIBICONV_PLUG -DPYTHON_MAJOR_VERSION=3 -Wno-unused-variable
-Wno-maybe-uninitialized -O2 -pipe -DLIBICONV_PLUG -fstack-protector-strong
-fno-strict-aliasing -DLIBICONV_PLUG -Wall -ansi
-Wno-unused-command-line-argument -Wpointer-arith -Wwrite-strings
-Wno-overloaded-virtual -Wno-deprecated-declarations -Wno-deprecated -std=c++0x
-MT _quickfix_la-QuickfixPython.lo -MD -MP -MF
.deps/_quickfix_la-QuickfixPython.Tpo -c QuickfixPython.cpp -fPIC -DPIC -o
.libs/_quickfix_la-QuickfixPython.o
warning: unknown warning option '-Wno-maybe-uninitialized'; did you mean
'-Wno-uninitialized'? [-Wunknown-warning-option]
QuickfixPython.cpp:175:11: fatal error: 'Python.h' file not found
 ^~~~~~~~~~
1 warning and 1 error generated.
Reviewed by:	portmgr, vishwin, yuri
Differential Revision:	<https://reviews.freebsd.org/D40568>
3.10.0
06 Feb 2023 00:37:09
commit hash: 4802bb19b9bda410442a33f1fb8f7a36a756f136 commit hash: 4802bb19b9bda410442a33f1fb8f7a36a756f136 commit hash: 4802bb19b9bda410442a33f1fb8f7a36a756f136 commit hash: 4802bb19b9bda410442a33f1fb8f7a36a756f136 files touched by this commit
Yuri Victorovich (yuri) search for other commits by this committer
devel/py-pytest-mock: Update 1.10.4 → 3.10.0
PR:		269361
Approved by:	olgeni@ (maintainer's timeout; 6+ months on bug#264762)
1.10.4
11 Jan 2023 15:58:34
commit hash: 77d68471aded6907dbbcb5ef50d557e4c69db656 commit hash: 77d68471aded6907dbbcb5ef50d557e4c69db656 commit hash: 77d68471aded6907dbbcb5ef50d557e4c69db656 commit hash: 77d68471aded6907dbbcb5ef50d557e4c69db656 files touched by this commit
Dmitry Marakasov (amdmi3) search for other commits by this committer
*/*: rename CHEESESHOP to PYPI in MASTER_SITES
PR:			267994
Differential revision:	D37518
Approved by:		bapt
07 Sep 2022 21:58:51
commit hash: fb16dfecae4a6efac9f3a78e0b759fb7a3c53de4 commit hash: fb16dfecae4a6efac9f3a78e0b759fb7a3c53de4 commit hash: fb16dfecae4a6efac9f3a78e0b759fb7a3c53de4 commit hash: fb16dfecae4a6efac9f3a78e0b759fb7a3c53de4 files touched by this commit
Stefan Eßer (se) search for other commits by this committer
Remove WWW entries moved into port Makefiles
Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.
This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.
Approved by:		portmgr (tcberner)
1.10.4
07 Sep 2022 21:10:59
commit hash: b7f05445c00f2625aa19b4154ebcbce5ed2daa52 commit hash: b7f05445c00f2625aa19b4154ebcbce5ed2daa52 commit hash: b7f05445c00f2625aa19b4154ebcbce5ed2daa52 commit hash: b7f05445c00f2625aa19b4154ebcbce5ed2daa52 files touched by this commit
Stefan Eßer (se) search for other commits by this committer
Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.
Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.
There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above View all of this commit message)
1.10.4
07 Apr 2021 08:09:01
commit hash: cf118ccf875508b9a1c570044c93cfcc82bd455c commit hash: cf118ccf875508b9a1c570044c93cfcc82bd455c commit hash: cf118ccf875508b9a1c570044c93cfcc82bd455c commit hash: cf118ccf875508b9a1c570044c93cfcc82bd455c files touched by this commit
Mathieu Arnold (mat) search for other commits by this committer
One more small cleanup, forgotten yesterday.
Reported by:	lwhsu
1.10.4
06 Apr 2021 14:31:07
commit hash: 305f148f482daf30dcf728039d03d019f88344eb commit hash: 305f148f482daf30dcf728039d03d019f88344eb commit hash: 305f148f482daf30dcf728039d03d019f88344eb commit hash: 305f148f482daf30dcf728039d03d019f88344eb files touched by this commit
Mathieu Arnold (mat) search for other commits by this committer
Remove # $FreeBSD$ from Makefiles.
1.10.4
14 Jul 2020 07:59:28
Revision:542200 Original commit files touched by this commit
antoine search for other commits by this committer
Unbreak bulk -a
1.10.4
07 May 2019 12:22:27
Revision:500959 Original commit files touched by this commit
koobs search for other commits by this committer
devel/py-pytest-mock: Update to 1.10.4
 - Conditionalise mock dependency (Python 2.x only)
 - Add upstream patches to fix test failures with mock 3.x
 - Verbosify test target and print skipped messages/reasons
 - Pet portlint: NO_ARCH in USE/USES section
Changelog:
 https://github.com/pytest-dev/pytest-mock/blob/1.10.4/CHANGELOG.rst
Reviewed by:		olgeni
Approved by:		olgeni (maintainer)
Differential Revision:	D20167
1.7.1
20 Jun 2018 17:05:44
Revision:472884 Original commit files touched by this commit
mat search for other commits by this committer
Use PY_FLAVOR for dependencies.
FLAVOR is the current port's flavor, it should not be used outside of
this scope.
Sponsored by:	Absolight
1.7.1
06 Mar 2018 11:56:44
Revision:463714 Original commit files touched by this commit
olgeni search for other commits by this committer
Update devel/py-pytest-mock to version 1.7.1.
1.6.3
30 Nov 2017 15:50:34
Revision:455210 Original commit files touched by this commit Sanity Test Failure
mat search for other commits by this committer
Convert Python ports to FLAVORS.
 Ports using USE_PYTHON=distutils are now flavored. They will
 automatically get flavors (py27, py34, py35, py36) depending on what
 versions they support.
 There is also a USE_PYTHON=flavors for ports that do not use distutils
 but need FLAVORS to be set. A USE_PYTHON=noflavors can be set if
 using distutils but flavors are not wanted.
 A new USE_PYTHON=optsuffix that will add PYTHON_PKGNAMESUFFIX has been
 added to cope with Python ports that did not have the Python
 PKGNAMEPREFIX but are flavored.
 USES=python now also exports a PY_FLAVOR variable that contains the
(Only the first 15 lines of the commit message are shown above View all of this commit message)
1.6.3
16 Sep 2017 07:09:34
Revision:449945 Original commit files touched by this commit
olgeni search for other commits by this committer
Update devel/py-pytest-mock to version 1.6.3.
1.6.2
02 Sep 2017 09:17:32
Revision:449113 Original commit files touched by this commit
olgeni search for other commits by this committer
Update devel/py-pytest-mock to version 1.6.2.
1.6.0
26 Jun 2017 10:32:25
Revision:444362 Original commit files touched by this commit
olgeni search for other commits by this committer
Add devel/py-pytest-mock, a thin wrapper around the mock package
for easier use with py.test.
Includes upstream commit 2bb5fdf to fix 'make test'.

Number of commits found: 19

Login
User Login
Create account

Servers and bandwidth provided by
New York Internet, iXsystems, and RootBSD

This site
What is FreshPorts?
About the authors
Issues
FAQ
How big is it?
Security Policy
Privacy
Blog
Contact

Search
Enter Keywords:
more...

Latest Vulnerabilities
openvpn Sep 04
electron42 Sep 03
libnjs Sep 03
nginx-full Sep 03
njs Sep 03
chromium Sep 02
jenkins Sep 02
jenkins-lts Sep 02
erlang Sep 01
erlang Sep 01

29 vulnerabilities affecting 436 ports have been reported in the past 14 days

* - modified, not new

All vulnerabilities

Last processed:
2026年09月04日 23:14:41 UTC


Ports
Home
Categories
Deleted ports
Sanity Test Failures
Newsfeeds

Statistics
Graphs
NEW Graphs (Javascript)

Calculated hourly:
Port count 35099
Broken 84
Ignore 197

Servers and bandwidth provided by
New York Internet, iXsystems, and RootBSD Valid HTML, CSS, and RSS. Copyright © 2000-2026 Dan Langille. All rights reserved.

AltStyle によって変換されたページ (->オリジナル) /