ports/devel/py-inline-snapshot/Makefile
Kai Knoblich ce756b6b20 devel/py-inline-snapshot: New port
Golden master/snapshot/approval testing library which puts the values
right into your source code.

Key Features:

* Intuitive Semantics: snapshot(x) mirrors x for easy understanding.
* Versatile Comparison Support: Equipped with x == snapshot(...),
  x <= snapshot(...), x in snapshot(...), and snapshot(...)[key].
* Enhanced Control Flags: Utilize various flags for precise control of
  which snapshots you want to change.
* Preserved Black Formatting: Retains formatting consistency with Black
  formatting.
* External File Storage: Store snapshots externally using
  outsource(data).
* Seamless Pytest Integration: Integrated seamlessly with pytest for
  effortless testing.
* Customizable: code generation can be customized with @customize_repr
* Nested Snapshot Support: snapshots can contain other snapshots
* Fuzzy Matching: Incorporate dirty-equals for flexible comparisons
  within snapshots.
* Dynamic Snapshot Content: snapshots can contain non-constant values
* Comprehensive Documentation: Access detailed documentation for
  complete guidance.
2024-12-29 11:12:41 +01:00

29 lines
994 B
Makefile

PORTNAME= inline-snapshot
DISTVERSION= 0.18.1
CATEGORIES= devel python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= inline_snapshot-${DISTVERSION}
MAINTAINER= kai@FreeBSD.org
COMMENT= Create and update inline snapshots in your Python code
WWW= https://github.com/15r10nk/inline-snapshot
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hatchling>0:devel/py-hatchling@${PY_FLAVOR}
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}asttokens>=2.0.5:devel/py-asttokens@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}black>=23.3.0:devel/py-black@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}click>=8.1.4:devel/py-click@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}executing>=2.1.0:devel/py-executing@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}rich>=13.7.1:textproc/py-rich@${PY_FLAVOR} \
${PY_TOMLI} \
${PYTHON_PKGNAMEPREFIX}typing-extensions>0:devel/py-typing-extensions@${PY_FLAVOR}
USES= python
USE_PYTHON= autoplist pep517
NO_ARCH= yes
.include <bsd.port.mk>