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 photosAll times are UTC
Ukraine

Bot filter coming soon

To deter bots pegging the database CPU to 100%, a bot testing filter to be added to the website. This should not affect newsfeeds etc. Anubis seems light-weight - it''''''''s already in use within the FreeBSD Project. This notice is just a heads up in case you see something odd. This notice will be updated after Anubis is installed.

Port details on branch 2022Q4
py-mock Rolling backport of unittest.mock for all Pythons
5.2.0_1 devel on this many watch lists=9 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 5.2.0_1Version of this port present on the latest quarterly branch.
Maintainer: bofh@FreeBSD.org search for ports maintained by this maintainer
Port Added: 2010-07-09 20:53:29
Last Update: 2025-03-08 04:05:21
Commit Hash: 06a08e6
People watching this port, also watch:: libxml2, py311-six, indexinfo, py311-configargparse, py311-configobj
Also Listed In: python
License: BSD2CLAUSE
WWW:
https://mock.readthedocs.org/en/latest/
Description:
mock is a library for testing in Python. It allows you to replace parts of your system under test with mock objects and make assertions about how they have been used. mock is now part of the Python standard library, available as unittest.mock in Python 3.3 onwards. This package contains a rolling backport of the standard library mock code compatible with Python 2.7 and 3.4 and up.
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.
Dependency lines:
  • ${PYTHON_PKGNAMEPREFIX}mock>0:devel/py-mock@${PY_FLAVOR}
To install the port:
cd /usr/ports/devel/py-mock/ && make install clean
To add the package, run one of these commands:
  • pkg install devel/py-mock
  • pkg install py311-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-mock listed in the above command, you can pick from the names under the Packages section.
PKGNAME: py311-mock
Package flavors (<flavor>: <package>)
  • py311: py311-mock
distinfo:
TIMESTAMP = 1741071821 SHA256 (testing-cabal-mock-5.2.0_GH0.tar.gz) = ab700375e77a5213e8def1f61c2d83ca1b50ff9b56b541992dc54784c1274c52 SIZE (testing-cabal-mock-5.2.0_GH0.tar.gz) = 90933

Packages (timestamps in pop-ups are UTC):
py37-mock
ABIaarch64amd64armv6armv7i386powerpcpowerpc64powerpc64le
FreeBSD:13:latest--3.0.5---3.0.5-
FreeBSD:13:quarterly--------
FreeBSD:14:latest--------
FreeBSD:14:quarterly--------
FreeBSD:15:latest--n/a-n/a---
 
py39-mock
ABIaarch64amd64armv6armv7i386powerpcpowerpc64powerpc64le
FreeBSD:13:latest--------
FreeBSD:13:quarterly--5.0.2--5.1.05.1.05.1.0
FreeBSD:14:latest--5.0.1--5.0.2-5.0.2
FreeBSD:14:quarterly-----5.1.05.1.05.1.0
FreeBSD:15:latest--n/a-n/a5.1.05.1.05.1.0
 
py311-mock
ABIaarch64amd64armv6armv7i386powerpcpowerpc64powerpc64le
FreeBSD:13:latest5.2.0_15.2.0_1-5.2.0_15.2.0_1---
FreeBSD:13:quarterly5.2.0_15.2.0_1-5.2.0_15.2.0_1---
FreeBSD:14:latest5.2.0_15.2.0_1-5.2.0_15.2.0_1---
FreeBSD:14:quarterly5.2.0_15.2.0_1-5.1.05.2.0_1---
FreeBSD:15:latest5.2.0_15.2.0_1n/a5.2.0_1n/a---
 
Dependencies
NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
Build dependencies:
  1. py311-setuptools>=63.1.0 : devel/py-setuptools@py311
  2. python3.11 : lang/python311
Test dependencies:
  1. py311-pytest>=7,1 : devel/py-pytest@py311
  2. python3.11 : lang/python311
Runtime dependencies:
  1. python3.11 : lang/python311
This port is required by:
for Build
  1. databases/py-peewee_migrate
  2. devel/py-buildbot-www
  3. graphics/qgis
  4. graphics/qgis-ltr

Deleted ports which required this port:

Expand this list of 2 deleted ports
  1. devel/buildbot-www*
  2. security/py-keystone*
  3. Collapse this list of deleted ports.
for Run
  1. astro/py-skyfield
  2. databases/py-peewee_migrate
  3. devel/py-pytest-shutil
  4. devel/py-sure
  5. devel/py-tables
  6. devel/py-vsts-cd-manager
  7. finance/odoo
Expand this list (23 items / 16 hidden - sorry, this count includes any deleted ports)
  1. Collapse this list).
  2. finance/odoo16
  3. finance/odoo17
  4. graphics/qgis
  5. graphics/qgis-ltr
  6. security/py-certbot-dns-powerdns
  7. security/py-certbot-dns-standalone
  8. sysutils/duplicity
  9. Collapse this list.

Deleted ports which required this port:

Expand this list of 9 deleted ports
  1. audio/py-gmusicapi*
  2. finance/odoo14*
  3. finance/odoo15*
  4. security/py-letsencrypt*
  5. sysutils/duplicity-devel*
  6. sysutils/py-azure-cli-batchai*
  7. www/py-instabot*
  8. www/py-kallithea*
  9. www/py-rhodecode*
  10. Collapse this list of deleted ports.
* - deleted ports are only shown under the This port is required by section. It was harder to do for the Required section. Perhaps later...

Configuration Options:
No options to configure
Options name:
devel_py-mock
USES:
python
FreshPorts was unable to extract/find any pkg message
Master Sites:
Expand this list (1 items)
Collapse this list.
  1. https://codeload.github.com/testing-cabal/mock/tar.gz/5.2.0?dummy=/
Collapse this list.

There are no commits on branch 2022Q4 for this port