Searches without login should now work. You must get asked to click a button.
Some translations wanted please.
New RSS 2.0 and Atom feeds are here. The old /backend/ feeds still work, but will be redirected later, so please update your subscriptions. Details.
Port details
py-mongomock Library for testing Python code that interacts with MongoDB
4.3.0 databasesnew! Σ=0 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 Package not present on quarterly.This port was created during this quarter. It will be in the next quarterly branch but not the current one.
Maintainer: meka@sys.it.com search for ports maintained by this maintainer
Port Added: 2026-11-17 22:06:05
Last Update: 2026-11-17 22:04:45
Commit Hash: 288db12
Also Listed In: python
License: ISCL
WWW:
https://github.com/mongomock/mongomock
Description: #
Mongomock is a small library to help testing Python code that interacts with MongoDB via Pymongo. It implements a fake in-memory MongoDB server and provides a subset of PyMongo's API, allowing tests to run without a running MongoDB instance.
Homepage    cgit ¦ Codeberg ¦ GitHub ¦ GitLab ¦ SVNWeb - no subversion history for this port
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}mongomock>0:databases/py-mongomock@${PY_FLAVOR}
To install the port: #
cd /usr/ports/databases/py-mongomock/ && make install clean
To add the package, run one of these commands:
  • pkg install databases/py-mongomock
  • pkg install py312-mongomock
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-mongomock listed in the above command, you can pick from the names under the Packages section.
PKGNAME: py312-mongomock
Package flavors (<flavor>: <package>) #
  • py312: py312-mongomock
distinfo: #
TIMESTAMP = 1794278716 SHA256 (mongomock-4.3.0.tar.gz) = 32667b79066fabc12d4f17f16a8fd7361b5f4435208b3ba32c226e52212a8c30 SIZE (mongomock-4.3.0.tar.gz) = 135862

No package information for this port in our database #
Sometimes this happens. Not all ports have packages. This is doubly so for new ports, like this one.
Dependencies #
NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
Build dependencies: #
  1. py312-hatch-vcs>=0 : devel/py-hatch-vcs@py312
  2. py312-hatchling>=0 : devel/py-hatchling@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-pymongo>=0 : databases/py-pymongo@py312
  2. py312-pytest>=7,1 : devel/py-pytest@py312
  3. python3.12 : lang/python312
Runtime dependencies: #
  1. py312-packaging>=0 : devel/py-packaging@py312
  2. py312-pytz>=0 : devel/py-pytz@py312
  3. py312-sentinels>=0 : devel/py-sentinels@py312
  4. python3.12 : lang/python312
This port is required by: #
for Test #
  1. devel/py-factory-boy

Configuration Options: #
No options to configure
Options name: #
databases_py-mongomock
USES: #
python
pkg-message: #
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/m/mongomock/
  2. https://pypi.org/packages/source/m/mongomock/
Collapse this list.

Number of commits found: 1 #

Commit History - (may be incomplete: for full details, see links to repositories near top of page)
CommitCreditsLog message
4.3.0
17 Nov 2026 22:04:45
commit hash: 288db125bae74f3b746bbc1399d522b53b7e2b6ccommit hash: 288db125bae74f3b746bbc1399d522b53b7e2b6ccommit hash: 288db125bae74f3b746bbc1399d522b53b7e2b6ccommit hash: 288db125bae74f3b746bbc1399d522b53b7e2b6c files touched by this commit Sanity Test Failure
Yusuf Yaman (nxjoseph) search for other commits by this committer
Author: Goran Mekić
databases/py-mongomock: Add new port

Mongomock is a small library to help testing Python code that interacts
with MongoDB via Pymongo. It implements a fake in-memory MongoDB server
and provides a subset of PyMongo's API, allowing tests to run without a
running MongoDB instance.

WWW:		https://github.com/mongomock/mongomock

PR:		300720
Approved by:	osa, vvd (mentors, implicit)

Number of commits found: 1