devel/py-time-machine 3.5.1 FreeBSD
Travel through time in your Python tests
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- Last update
- Commit
33c32bb828- License
- MIT
- Categories
- devel, python
- Package size
- 57.5 KiB, 264.0 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 |
|---|---|---|
| FreeBSD | devel/py-time-machine | 3.5.1 |
| OpenBSD | devel/py-time-machine | 3.2.0 |
| DragonFly | devel/py-time-machine | 2.13.0 |
| MidnightBSD | devel/py-time-machine | 2.13.0_1 |
Install
Binary package:
pkg install py312-time-machine
From the ports tree:
cd /usr/ports/devel/py-time-machine/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= py312-time-machine>0:devel/py-time-machine
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 3.5.1 | 3.5.1 | - | 2.13.0 | 3.5.1 |
| FreeBSD:14:quarterly | 3.5.1 | 3.5.1 | n/a | 2.13.0 | 3.5.1 |
| FreeBSD:15:latest | 3.5.1 | 3.5.1 | n/a | 2.13.0 | 2.13.0 |
| FreeBSD:15:quarterly | 3.5.1 | 3.5.1 | n/a | n/a | n/a |
| FreeBSD:16:latest | 3.5.1 | 3.5.1 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
As this port's Makefile names them.
Build 1
${PYTHON_PKGNAMEPREFIX}wheel>=0.40.0: devel/py-wheel
Runtime 2
${PYTHON_PKGNAMEPREFIX}python-dateutil>=2.8.2: devel/py-python-dateutil${PYTHON_PKGNAMEPREFIX}six>=1.5: devel/py-six
The full lists below include those, and their dependencies in turn.
Build dependencies 16
Run dependencies 9
Required by 15
Configuration
No options to configure.
- USES
- python
- Service scripts
- none
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| time_machine-3.5.1.tar.gz | 28434 | eb2c50404820fde8bfc6a0713b2a0b8eabececfecefde3a5847ae8006037829f |
Master sites 1
- PYPI
Commit history 3
| Date | Commit | Credits | Log message |
|---|---|---|---|
33c32bb828 |
Nicola Vitale | devel/py-time-machine: Update to 3.5.1 Reported by: portscout! |
|
7afde957f7 |
Nicola Vitale | devel/py-time-machine: Update to 3.5.0 Reported by: "github-actions[bot]" <[email protected]> |
|
faa29f0355 |
Nicola Vitale | devel/py-time-machine: Update to 3.4.0 Reported by: repology.org |