notbugAs 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.
Port details on branch 2026Q2
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.10.0_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-05-14 01:01:53
Commit Hash: 5b6315d
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 py311-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 py311-pytest-mock listed in the above command, you can pick from the names under the Packages section.
PKGNAME: py311-pytest-mock
Package flavors (<flavor>: <package>)
  • py311: py311-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):
py37-pytest-mock
ABIaarch64amd64armv6armv7i386powerpcpowerpc64powerpc64le
FreeBSD:13:latest--1.10.4--n/an/an/a
FreeBSD:13:quarterly-----n/an/an/a
FreeBSD:14:latest--------
FreeBSD:14:quarterly--------
FreeBSD:15:latest--n/a-n/an/a--
FreeBSD:15:quarterly--n/a-n/an/a--
FreeBSD:16:latest--n/a-n/an/a--
 
py39-pytest-mock
ABIaarch64amd64armv6armv7i386powerpcpowerpc64powerpc64le
FreeBSD:13:latest-----n/an/an/a
FreeBSD:13:quarterly--3.10.0--n/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_1-3.10.0_13.10.0_1n/an/an/a
FreeBSD:13:quarterly3.10.0_13.10.0_1-3.10.0_13.10.0_1n/an/an/a
FreeBSD:14:latest3.15.13.15.1-3.10.0_13.15.1---
FreeBSD:14:quarterly3.10.0_13.10.0_1-3.10.0_13.10.0_1---
FreeBSD:15:latest3.15.13.15.1n/a3.10.0_1n/an/a--
FreeBSD:15:quarterly3.10.0_13.10.0_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. py311-setuptools-scm>=0 : devel/py-setuptools-scm@py311
  2. py311-wheel>=0 : devel/py-wheel@py311
  3. python3.11 : lang/python311
  4. py311-build>=0 : devel/py-build@py311
  5. py311-installer>=0 : devel/py-installer@py311
Test dependencies:
  1. py311-coverage>0 : devel/py-coverage@py311
  2. py311-mock>0 : devel/py-mock@py311
  3. py311-pytest-asyncio>0 : devel/py-pytest-asyncio@py311
  4. py311-pytest>=0 : devel/py-pytest@py311
  5. python3.11 : lang/python311
Runtime dependencies:
  1. py311-pytest>=6.2.5 : devel/py-pytest@py311
  2. python3.11 : lang/python311
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:3.9+
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.

There are no commits on branch 2026Q2 for this port