| Port details |
- py-pyfakefs Implement a fake file system that mocks the Python file system modules
- 6.2.0 filesystems
=0 6.2.0Version of this port present on the latest quarterly branch. - Maintainer: sunpoet@FreeBSD.org
 - Port Added: 2024-11-07 19:52:55
- Last Update: 2026-09-29 19:24:59
- Commit Hash: bc42b5f
- Also Listed In: devel python
- License: APACHE20
- WWW:
- https://pytest-pyfakefs.readthedocs.io/en/stable/
- https://github.com/jmcgeheeiv/pyfakefs
- Description:
- pyfakefs implements a fake file system that mocks the Python file system
modules. Using pyfakefs, your tests operate on a fake file system in memory
without touching the real disk. The software under test requires no modification
to work with pyfakefs.
Pyfakefs creates a new empty in-memory file system at each test start, which
replaces the real filesystem during the test. Think of pyfakefs as making a
per-test temporary directory, except for an entire file system.
There are several means to achieve this: by using the fs fixture if running
pytest, by using fake_filesystem_unittest.TestCase as a base class if using
unittest, by using a fake_filesystem_unittest.Patcher instance as a context
manager, or by using the patchfs decorator.
 ¦ ¦ ¦ ¦ 
- 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}pyfakefs>0:filesystems/py-pyfakefs@${PY_FLAVOR}
- To install the port:
- cd /usr/ports/filesystems/py-pyfakefs/ && make install clean
- To add the package, run one of these commands:
- pkg install filesystems/py-pyfakefs
- pkg install py312-pyfakefs
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-pyfakefs listed in the above command, you can pick from the names under the Packages section.- PKGNAME: py312-pyfakefs
- Package flavors (<flavor>: <package>)
- distinfo:
- TIMESTAMP = 1790435870
SHA256 (pyfakefs-6.2.0.tar.gz) = e59a36db447bf509ce9c97ab3d1510c08cc51895c5311325a560a5e5b5dc1940
SIZE (pyfakefs-6.2.0.tar.gz) = 228273
Packages (timestamps in pop-ups are UTC):
- Dependencies
- NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
- Build dependencies:
-
- py312-setuptools>=61.2 : devel/py-setuptools@py312
- py312-wheel>=0 : devel/py-wheel@py312
- python3.12 : lang/python312
- py312-build>=0 : devel/py-build@py312
- py312-installer>=0 : devel/py-installer@py312
- Test dependencies:
-
- py312-pytest-xdist>=0,1 : devel/py-pytest-xdist@py312
- py312-pytest>=7,1 : devel/py-pytest@py312
- python3.12 : lang/python312
- Runtime dependencies:
-
- python3.12 : lang/python312
- There are no ports dependent upon this port
Configuration Options:
- No options to configure
- Options name:
- filesystems_py-pyfakefs
- USES:
- python
- FreshPorts was unable to extract/find any pkg message
- Master Sites:
|