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
Port details on branch 2023Q1
py-mock Rolling backport of unittest.mock for all Pythons
5.1.0 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.1.0Version 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: 2023-07-15 15:43:35
Commit Hash: ea260e9
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 py39-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 py39-mock listed in the above command, you can pick from the names under the Packages section.
PKGNAME: py39-mock
Package flavors (<flavor>: <package>)
  • py39: py39-mock
distinfo:
TIMESTAMP = 1689432997 SHA256 (testing-cabal-mock-5.1.0_GH0.tar.gz) = e3ad0dbebbdab94f7401920e86cb765f50c42f6f88db223c8438c352fc8c136f SIZE (testing-cabal-mock-5.1.0_GH0.tar.gz) = 87814

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.1.05.1.0-5.1.05.1.0---
FreeBSD:13:quarterly5.1.05.1.0-5.1.05.1.0---
FreeBSD:14:latest5.1.05.1.0-5.1.05.1.0---
FreeBSD:14:quarterly5.1.05.1.0-5.1.05.1.0---
FreeBSD:15:latest5.1.05.1.0n/a5.1.0n/a---
 
Dependencies
NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
Build dependencies:
  1. py39-setuptools>=63.1.0 : devel/py-setuptools@py39
  2. python3.9 : lang/python39
Test dependencies:
  1. py39-pytest>=7,1 : devel/py-pytest@py39
  2. python3.9 : lang/python39
Runtime dependencies:
  1. py39-setuptools>=63.1.0 : devel/py-setuptools@py39
  2. python3.9 : lang/python39
This port is required by:
for Build
  1. databases/py-peewee_migrate
  2. devel/py-buildbot-www
  3. dns/py-ns1-python
  4. graphics/qgis
  5. 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 (22 items / 15 hidden - sorry, this count includes any deleted ports)
  1. Collapse this list).
  2. finance/odoo14
  3. finance/odoo15
  4. finance/odoo16
  5. graphics/qgis
  6. graphics/qgis-ltr
  7. security/py-certbot-dns-powerdns
  8. security/py-certbot-dns-standalone
  9. sysutils/duplicity
  10. www/py-instabot
  11. Collapse this list.

Deleted ports which required this port:

Expand this list of 6 deleted ports
  1. audio/py-gmusicapi*
  2. security/py-letsencrypt*
  3. sysutils/duplicity-devel*
  4. sysutils/py-azure-cli-batchai*
  5. www/py-kallithea*
  6. www/py-rhodecode*
  7. 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.1.0?dummy=/
Collapse this list.

There are no commits on branch 2023Q1 for this port