Skip to content

Commit

Permalink
devel/py-dirty-equals: Add py-dirty-equals 0.7.1.post0
Browse files Browse the repository at this point in the history
dirty-equals is a python library that (mis)uses the __eq__ method to make python
code (generally unit tests) more declarative and therefore easier to read and
write.

dirty-equals can be used in whatever context you like, but it comes into its own
when writing unit tests for applications where you're commonly checking the
response to API calls and the contents of a database.
  • Loading branch information
sunpoet committed Feb 21, 2024
1 parent 4960f5d commit ed17a90
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 0 deletions.
1 change: 1 addition & 0 deletions devel/Makefile
Expand Up @@ -4614,6 +4614,7 @@
SUBDIR += py-diff-cover
SUBDIR += py-dill
SUBDIR += py-dirspec
SUBDIR += py-dirty-equals
SUBDIR += py-diskcache
SUBDIR += py-distlib
SUBDIR += py-distributed
Expand Down
24 changes: 24 additions & 0 deletions devel/py-dirty-equals/Makefile
@@ -0,0 +1,24 @@
PORTNAME= dirty-equals
PORTVERSION= 0.7.1.post0
CATEGORIES= devel python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= dirty_equals-${PORTVERSION}

MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Do dirty (but extremely useful) things with equals
WWW= https://dirty-equals.helpmanual.io/latest/ \
https://github.com/samuelcolvin/dirty-equals

LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE

BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hatchling>=0:devel/py-hatchling@${PY_FLAVOR}
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytz>=2021.3,1:devel/py-pytz@${PY_FLAVOR}

USES= python
USE_PYTHON= autoplist concurrent pep517

NO_ARCH= yes

.include <bsd.port.mk>
3 changes: 3 additions & 0 deletions devel/py-dirty-equals/distinfo
@@ -0,0 +1,3 @@
TIMESTAMP = 1708448818
SHA256 (dirty_equals-0.7.1.post0.tar.gz) = 78ff80578a46163831ecb3255cf30d03d1dc2fbca8e67f820105691a1bc556dc
SIZE (dirty_equals-0.7.1.post0.tar.gz) = 48858
7 changes: 7 additions & 0 deletions devel/py-dirty-equals/pkg-descr
@@ -0,0 +1,7 @@
dirty-equals is a python library that (mis)uses the __eq__ method to make python
code (generally unit tests) more declarative and therefore easier to read and
write.

dirty-equals can be used in whatever context you like, but it comes into its own
when writing unit tests for applications where you're commonly checking the
response to API calls and the contents of a database.

0 comments on commit ed17a90

Please sign in to comment.