notbugAs an Amazon Associate I earn from qualifying purchases.
Want a good read? Try FreeBSD Mastery: Jails (IT Mastery Book 15)
Want a good monitor light? See my photosAll times are UTC
Ukraine
Port details
py-time-machine Travel through time in your Python tests
2.13.0 devel on this many watch lists=2 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 2.11.0_1Version of this port present on the latest quarterly branch.
Maintainer: nivit@FreeBSD.org search for ports maintained by this maintainer
Port Added: 2023-06-17 08:21:30
Last Update: 2025-03-12 20:50:19
Commit Hash: c14ba65
People watching this port, also watch:: jdictionary, py311-Automat, py311-python-gdsii, py311-PyOpenGL, p5-Sane
Also Listed In: python
License: MIT
WWW:
https://github.com/adamchainz/time-machine
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.
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.
Dependency lines:
  • ${PYTHON_PKGNAMEPREFIX}time-machine>0:devel/py-time-machine@${PY_FLAVOR}
To install the port:
cd /usr/ports/devel/py-time-machine/ && make install clean
To add the package, run one of these commands:
  • pkg install devel/py-time-machine
  • pkg install py311-time-machine
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-time-machine listed in the above command, you can pick from the names under the Packages section.
PKGNAME: py311-time-machine
Package flavors (<flavor>: <package>)
  • py311: py311-time-machine
distinfo:
TIMESTAMP = 1741812443 SHA256 (time_machine-2.13.0.tar.gz) = c23b2408e3adcedec84ea1131e238f0124a5bc0e491f60d1137ad7239b37c01a SIZE (time_machine-2.13.0.tar.gz) = 24606

Packages (timestamps in pop-ups are UTC):
py39-time-machine
ABIaarch64amd64armv6armv7i386powerpcpowerpc64powerpc64le
FreeBSD:13:latest--------
FreeBSD:13:quarterly--2.10.0--2.11.02.11.02.11.0
FreeBSD:14:latest-------2.10.0
FreeBSD:14:quarterly-----2.11.02.11.02.11.0
FreeBSD:15:latest--n/a-n/a2.11.02.11.02.11.0
 

py311-time-machine
ABIaarch64amd64armv6armv7i386powerpcpowerpc64powerpc64le
FreeBSD:13:latest2.13.02.13.0-2.11.0_12.13.0---
FreeBSD:13:quarterly2.11.0_12.11.0_1-2.11.0_12.11.0_1---
FreeBSD:14:latest2.11.0_12.13.0-2.11.0_12.13.0---
FreeBSD:14:quarterly2.11.0_12.11.0_1-2.11.0_12.11.0_1---
FreeBSD:15:latest2.11.0_12.13.0n/a2.11.0_1n/a---
 

Dependencies
NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
Build dependencies:
  1. py311-setuptools>0 : devel/py-setuptools@py311
  2. py311-wheel>=0.40.0 : devel/py-wheel@py311
  3. python3.11 : lang/python311
  4. py311-build>=0 : devel/py-build@py311
  5. py311-installer>=0 : devel/py-installer@py311
Test dependencies:
  1. python3.11 : lang/python311
Runtime dependencies:
  1. py311-python-dateutil>=2.8.2 : devel/py-python-dateutil@py311
  2. py311-six>=1.5 : devel/py-six@py311
  3. python3.11 : lang/python311
This port is required by:
for Run
  1. devel/py-pendulum

Configuration Options:
No options to configure
Options name:
devel_py-time-machine
USES:
python
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/t/time_machine/
  2. https://pypi.org/packages/source/t/time_machine/
Collapse this list.

Number of commits found: 5

Commit History - (may be incomplete: for full details, see links to repositories near top of page)
CommitCreditsLog message
2.13.0
12 Mar 2025 20:50:19
commit hash: c14ba650d108759e2644b92375447e1890f79056commit hash: c14ba650d108759e2644b92375447e1890f79056commit hash: c14ba650d108759e2644b92375447e1890f79056commit hash: c14ba650d108759e2644b92375447e1890f79056 files touched by this commit
Nicola Vitale (nivit) search for other commits by this committer
devel/py-time-machine: Update to 2.13.0

Reported by:	portscout!
2.11.0_1
13 Apr 2024 14:47:51
commit hash: 84a372ad5ff0dab59a76d894d1e7fb0a5bb7b742commit hash: 84a372ad5ff0dab59a76d894d1e7fb0a5bb7b742commit hash: 84a372ad5ff0dab59a76d894d1e7fb0a5bb7b742commit hash: 84a372ad5ff0dab59a76d894d1e7fb0a5bb7b742 files touched by this commit
Po-Chuan Hsieh (sunpoet) search for other commits by this committer
devel/py-python-dateutil: Move devel/py-dateutil to devel/py-python-dateutil

- Convert to USE_PYTHON=pep517
- Bump PORTREVISION of dependent ports for dependency change
- While I'm here, update audio/py-pyradio to use PYTHON_PKGNAMEPREFIX instead of
PKGNAMEPREFIX for *_DEPENDS
2.11.0
18 Jul 2023 00:53:09
commit hash: 9a80a6ee5e8ebf5c279b3d7a9e7e8b7dbabbaf0acommit hash: 9a80a6ee5e8ebf5c279b3d7a9e7e8b7dbabbaf0acommit hash: 9a80a6ee5e8ebf5c279b3d7a9e7e8b7dbabbaf0acommit hash: 9a80a6ee5e8ebf5c279b3d7a9e7e8b7dbabbaf0a files touched by this commit
Charlie Li (vishwin) search for other commits by this committer
devel/py-setuptools: convert individual consumers to ${PY_SETUPTOOLS}

Currently a no-op, but in the future outputs the correct setuptools
port depending on whether USES_PYTHON=distutils is specified.

With hat: python
PR: 270510, 270358
2.11.0
13 Jul 2023 09:25:36
commit hash: 9b5538c590bbc0c88adea0c0bb8bf00d44a16b9bcommit hash: 9b5538c590bbc0c88adea0c0bb8bf00d44a16b9bcommit hash: 9b5538c590bbc0c88adea0c0bb8bf00d44a16b9bcommit hash: 9b5538c590bbc0c88adea0c0bb8bf00d44a16b9b files touched by this commit
Nicola Vitale (nivit) search for other commits by this committer
devel/py-time-machine: Update to 2.11.0

Reported by:	portscout
2.10.0
17 Jun 2023 08:19:46
commit hash: aadc486bfec59c7d720d107f6758a4684c834236commit hash: aadc486bfec59c7d720d107f6758a4684c834236commit hash: aadc486bfec59c7d720d107f6758a4684c834236commit hash: aadc486bfec59c7d720d107f6758a4684c834236 files touched by this commit
Nicola Vitale (nivit) search for other commits by this committer
devel/py-time-machine: Add new port

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.

https://github.com/adamchainz/time-machine

Number of commits found: 5