devel/py-hamcrest 2.1.0 NetBSD
Framework for writing matcher objects
- System
- NetBSD
- Repository
- pkgsrc
- Maintainer
- [email protected]
- License
- modified-bsd
- Categories
- devel, python
- Package size
- 67.9 KiB, 470.6 KiB installed
Description
PyHamcrest is a framework for writing matcher objects, allowing you to declaratively define "match" rules. There are a number of situations where matchers are invaluable, such as UI validation, or data filtering, but it is in the area of writing flexible tests that matchers are most commonly used.
When writing tests it is sometimes difficult to get the balance right between overspecifying the test (and making it brittle to changes), and not specifying enough (making the test less valuable since it continues to pass even when the thing being tested is broken). Having a tool that allows you to pick out precisely the aspect under test and describe the values it should have, to a controlled level of precision, helps greatly in writing tests that are "just right." Such tests fail when the behavior of the aspect under test deviates from the expected behavior, yet continue to pass when minor, unrelated changes to the behaviour are made.
In the other systems
The newest version among them is 2.1.0, as upstream numbers it.
| System | Port | Version | Vulnerabilities | Status | Maintainer | Last update |
|---|---|---|---|---|---|---|
| NetBSD | devel/py-hamcrest | 2.1.0 newest | none known | - | [email protected] | - |
| OpenBSD | devel/py-hamcrest | 2.1.0 newest | no data | - | The OpenBSD ports mailing-list <[email protected]> | 2026-10-10 |
Install
Binary package:
pkgin install py311-hamcrest
From pkgsrc:
cd /usr/pkgsrc/devel/py-hamcrest && make install clean
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | Version |
|---|---|
| NetBSD 10.1 x86_64 | 2.1.0 |
| NetBSD 10.1 aarch64 | 2.1.0 |
| SmartOS / illumos x86_64 | 2.1.0 |
| macOS 15 arm64 | 2.1.0 |
Dependency graph
Ports that need it on the left, what it needs to run on the right; at most 8 of each. "Dependencies" below lists them all.
Dependencies
Run dependencies 1
Required by 1
Configuration
No options to configure.
- Service scripts
- none
- Flavors
py312-hamcrest-2.1.0,py313-hamcrest-2.1.0,py314-hamcrest-2.1.0