BSD Ports

devel/py-mock 5.2.0_1 FreeBSD

Rolling backport of unittest.mock for all Pythons

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
License
BSD2CLAUSE
Categories
devel, python
Package size
71.8 KiB, 378.4 KiB installed

Description

mock is a library for testing in Python. It allows you to replace parts of your system under test with mock objects and make assertions about how they have been used.

mock is now part of the Python standard library, available as unittest.mock in Python 3.3 onwards.

This package contains a rolling backport of the standard library mock code compatible with Python 2.7 and 3.4 and up.

In the other systems

SystemPortVersion
FreeBSDdevel/py-mock5.2.0_1
OpenBSDdevel/py-mock5.1.0p1
NetBSDdevel/py-mock5.2.0nb1
DragonFlydevel/py-mock5.2.0_1
MidnightBSDdevel/py-mock5.2.0_1

Install

Binary package:

pkg install py312-mock

From the ports tree:

cd /usr/ports/devel/py-mock/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	py312-mock>0:devel/py-mock

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:latest5.2.0_15.2.0_15.0.15.2.0_15.2.0_1
FreeBSD:14:quarterly5.2.0_15.2.0_1n/a5.2.0_15.2.0_1
FreeBSD:15:latest5.2.0_15.2.0_1n/a5.2.0_15.2.0_1
FreeBSD:15:quarterly5.2.0_15.2.0_1n/an/an/a
FreeBSD:16:latest5.2.0_15.2.0_1n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

The Makefile names none itself; they come from USES and USE_*.

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

Build dependencies 11
Run dependencies 7
Required by 83

Configuration

No options to configure.

USES
python
Service scripts
none

Files

distinfo 1
FileSizeSHA256
testing-cabal-mock-5.2.0_GH0.tar.gz90933ab700375e77a5213e8def1f61c2d83ca1b50ff9b56b541992dc54784c1274c52

Commit history 0

No commits in the history this site was built from.