Skip to content

Commit

Permalink
devel/py-attrs-strict: Add py-attrs-strict 1.0.0
Browse files Browse the repository at this point in the history
attrs-strict is a Python package which contains runtime validation for attrs
data classes based on the types existing in the typing module.

WWW: https://github.com/bloomberg/attrs-strict
  • Loading branch information
sunpoet committed Jun 21, 2022
1 parent 8adc34b commit 8e71087
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 0 deletions.
1 change: 1 addition & 0 deletions devel/Makefile
Expand Up @@ -4211,6 +4211,7 @@
SUBDIR += py-atomicwrites
SUBDIR += py-atpublic
SUBDIR += py-attrs
SUBDIR += py-attrs-strict
SUBDIR += py-autocommand
SUBDIR += py-autoflake
SUBDIR += py-automaton
Expand Down
29 changes: 29 additions & 0 deletions devel/py-attrs-strict/Makefile
@@ -0,0 +1,29 @@
# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>

PORTNAME= attrs-strict
PORTVERSION= 1.0.0
CATEGORIES= devel python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= attrs_strict-${PORTVERSION}

MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Runtime validators for attrs

LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE

RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}attrs>=19.1.0:devel/py-attrs@${PY_FLAVOR}

USES= python:3.7+
USE_PYTHON= autoplist concurrent distutils

NO_ARCH= yes

.include <bsd.port.pre.mk>

.if ${PYTHON_REL} < 30800
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}typing-extensions>=0:devel/py-typing-extensions@${PY_FLAVOR}
.endif

.include <bsd.port.post.mk>
3 changes: 3 additions & 0 deletions devel/py-attrs-strict/distinfo
@@ -0,0 +1,3 @@
TIMESTAMP = 1655561112
SHA256 (attrs_strict-1.0.0.tar.gz) = 6326c1e51c4fd2fffc9dd607dec06c31add64eedbd37a651ea88f663a37c3f18
SIZE (attrs_strict-1.0.0.tar.gz) = 25097
4 changes: 4 additions & 0 deletions devel/py-attrs-strict/pkg-descr
@@ -0,0 +1,4 @@
attrs-strict is a Python package which contains runtime validation for attrs
data classes based on the types existing in the typing module.

WWW: https://github.com/bloomberg/attrs-strict

0 comments on commit 8e71087

Please sign in to comment.