BSD Ports

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

SystemPortVersion
FreeBSDdevel/py-time-machine3.5.1
OpenBSDdevel/py-time-machine3.2.0
DragonFlydevel/py-time-machine2.13.0
MidnightBSDdevel/py-time-machine2.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.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest3.5.13.5.1-2.13.03.5.1
FreeBSD:14:quarterly3.5.13.5.1n/a2.13.03.5.1
FreeBSD:15:latest3.5.13.5.1n/a2.13.02.13.0
FreeBSD:15:quarterly3.5.13.5.1n/an/an/a
FreeBSD:16:latest3.5.13.5.1n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Build 1

Runtime 2

The full lists below include those, and their dependencies in turn.

Build dependencies 16
Run dependencies 9

Configuration

No options to configure.

USES
python
Service scripts
none

Files

distinfo 1
FileSizeSHA256
time_machine-3.5.1.tar.gz28434eb2c50404820fde8bfc6a0713b2a0b8eabececfecefde3a5847ae8006037829f
Master sites 1
  • PYPI

Commit history 3

DateCommitCreditsLog 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