devel/py-time-machine 2.13.0 DragonFly
Travel through time in your Python tests
- System
- DragonFly
- Repository
- DPorts
- Maintainer
- [email protected] (as in FreeBSD)
- License
- MIT
- Categories
- devel, python
- Package size
- 23.3 KiB, 100.8 KiB installed
Description
time-machine is intended to combine the advantages of freezegun and libfaketime Python modules. It works without LD_PRELOAD but still mocks the standard library functions everywhere they may be referenced. It does so by modifying the built-in functions at the C level, to point them through wrappers that return different values when mocking. Normally in Python, built-in functions are immutable, but time-machine overcomes this by using C code to replace their function pointers.
In the other systems
| System | Port | Version |
|---|---|---|
| DragonFly | devel/py-time-machine | 2.13.0 |
| FreeBSD | devel/py-time-machine | 3.5.1 |
| OpenBSD | devel/py-time-machine | 3.2.0 |
| NetBSD | time/py-time-machine | 3.5.1 |
| MidnightBSD | devel/py-time-machine | 2.13.0_1 |
| HardenedBSD | devel/py-time-machine | 3.5.1 |
| GhostBSD | devel/py-time-machine | 3.5.1 |
Install
Binary package:
pkg install py311-time-machine
From DPorts:
cd /usr/dports/devel/py-time-machine && make install clean