Search engines are not blocked. Try using "site:www.freshports.org" and your search terms.
Volunteers wanted to help translate FreshPorts
Searches without login should now work. You must get asked to click a button.
Port details on branch 2023Q1
py-mock Rolling backport of unittest.mock for all Pythons
5.2.0_1 devel Σ=7 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: pcre, libffi, gdbm, libxml2, libiconv
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.
USE_RC_SUBR (Service Scripts)
  • no SUBR information found 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): #
py39-mock
ABIaarch64amd64armv6armv7i386
FreeBSD:14:latest--5.0.1--
FreeBSD:14:quarterly-----
FreeBSD:15:latest--n/a-n/a
FreeBSD:15:quarterly--n/a-n/a
FreeBSD:16:latest--n/a-n/a
 
py311-mock
ABIaarch64amd64armv6armv7i386
FreeBSD:14:latest---5.2.0_1-
FreeBSD:14:quarterly---5.2.0_1-
FreeBSD:15:latest--n/a5.2.0_1n/a
FreeBSD:15:quarterly--n/a-n/a
FreeBSD:16:latest--n/a-n/a
 
py312-mock
ABIaarch64amd64armv6armv7i386
FreeBSD:14:latest5.2.0_15.2.0_1--5.2.0_1
FreeBSD:14:quarterly5.2.0_15.2.0_1--5.2.0_1
FreeBSD:15:latest5.2.0_15.2.0_1n/a-n/a
FreeBSD:15:quarterly5.2.0_15.2.0_1n/a-n/a
FreeBSD:16:latest5.2.0_15.2.0_1n/a-n/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-fam
  4. devel/py-pytest-shutil
  5. devel/py-sure
  6. devel/py-tables
  7. devel/py-vsts-cd-manager
Expand this list (26 items / 19 hidden - sorry, this count includes any deleted ports)
  1. Collapse this list.
  2. finance/odoo
  3. finance/odoo16
  4. finance/odoo17
  5. finance/odoo18
  6. graphics/qgis
  7. graphics/qgis-ltr
  8. irc/py-limnoria
  9. misc/py-sagemaker-core
  10. security/py-certbot-dns-powerdns
  11. security/py-certbot-dns-standalone
  12. 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.
for Test #
  1. astro/py-skyfield-data
  2. benchmarks/py-locust
  3. databases/py-pgcli
  4. databases/py-redis
  5. databases/py-redis2
  6. databases/py-redis5
  7. databases/py-redis6
Expand this list (121 items / 114 hidden - sorry, this count includes any deleted ports)
  1. Collapse this list.
  2. databases/py-sqlalchemy14
  3. databases/py-sqlalchemy20
  4. databases/py-txredisapi
  5. devel/py-adb
  6. devel/py-apispec
  7. devel/py-asynctest
  8. devel/py-buildbot-worker
  9. devel/py-circuitbreaker
  10. devel/py-configargparse
  11. devel/py-ddt
  12. devel/py-e3-core
  13. devel/py-factory-boy
  14. devel/py-filemagic
  15. devel/py-flake8
  16. devel/py-foolscap
  17. devel/py-gql
  18. devel/py-hupper
  19. devel/py-logan
  20. devel/py-openapi-spec-validator
  21. devel/py-parameterized
  22. devel/py-phabricator
  23. devel/py-pika
  24. devel/py-pydenticon
  25. devel/py-pytest
  26. devel/py-pytest-flask
  27. devel/py-pytest-mock
  28. devel/py-pytest-translations
  29. devel/py-pytest-verbose-parametrize
  30. devel/py-python-gist
  31. devel/py-setuptools-pkg
  32. devel/py-streamparse
  33. devel/py-subprocess-tee
  34. editors/py-vim-bridge
  35. finance/py-Nasdaq-Data-Link
  36. finance/py-pythclient
  37. graphics/py-pygraphviz
  38. irc/py-limnoria
  39. mail/py-premailer
  40. misc/py-PyWavefront
  41. misc/py-apache-beam
  42. misc/py-codecarbon
  43. misc/py-wurlitzer
  44. multimedia/py-soco
  45. net/py-cepa
  46. net/py-oauth2
  47. net/py-port-for
  48. net/py-pynsq
  49. net/py-pyshark
  50. net-im/py-smpplib
  51. net-mgmt/py-aggregate6
  52. science/py-dwave-cloud-client
  53. science/py-liac-arff
  54. security/apkid
  55. security/py-fido2
  56. security/py-keyrings.alt
  57. security/py-paramiko
  58. security/py-plaso
  59. security/py-pysaml2
  60. security/py-pywinrm
  61. security/py-stem
  62. security/py-xkcdpass
  63. sysutils/azure-agent
  64. sysutils/iocage
  65. sysutils/py-ansible-core
  66. sysutils/py-ansible-core220
  67. sysutils/py-ansible-core221
  68. sysutils/py-honcho
  69. sysutils/py-supervisor
  70. textproc/ibus-typing-booster
  71. textproc/py-elasticsearch
  72. textproc/py-elasticsearch6
  73. textproc/py-elasticsearch7
  74. textproc/py-file-read-backwards
  75. textproc/py-pyhamcrest
  76. textproc/py-python-pptx
  77. www/py-bravado-core
  78. www/py-cachecontrol
  79. www/py-dj60-social-auth-app-django
  80. www/py-google-cloud-testutils
  81. www/py-hypercorn
  82. www/py-pecan
  83. www/py-python-multipart
  84. www/py-requests-mock
  85. www/py-requests-oauthlib
  86. www/py-slowapi
  87. www/py-slumber
  88. www/py-social-auth-app-django
  89. www/py-treq
  90. www/py-webargs
  91. Collapse this list.

Deleted ports which required this port:

Expand this list of 25 deleted ports
  1. databases/py-cassandra-driver*
  2. databases/py-redis3*
  3. databases/py-redis4*
  4. databases/py-sqlalchemy10*
  5. databases/py-sqlalchemy11*
  6. databases/py-sqlalchemy12*
  7. databases/py-sqlalchemy13*
  8. devel/py-codecov*
  9. devel/py-dj40-django-rq*
  10. devel/py-dj41-django-rq*
  11. devel/py-pytest4*
  12. devel/py-python-jsonrpc-server*
  13. devel/py-rauth*
  14. net/py-urllib31*
  15. security/py-pysaml24*
  16. security/py-pysaml26*
  17. sysutils/py-ansible-core218*
  18. sysutils/py-ansible-core219*
  19. textproc/py-elasticsearch5*
  20. textproc/py-transifex-client*
  21. www/py-dj40-django-redis*
  22. www/py-dj41-django-redis*
  23. www/py-dj51-social-auth-app-django*
  24. www/py-dj52-social-auth-app-django*
  25. www/py-flask-security*
  26. 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 2023Q1 for this port