git: 959b2a61fa0e - main - devel/py-attr: New port: Simple decorator to set attributes of target function/class in DRY way

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Mon, 07 Apr 2025 21:21:57 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=959b2a61fa0ecd3ce550c72b5afe76ff8a588c78

commit 959b2a61fa0ecd3ce550c72b5afe76ff8a588c78
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2025-04-07 06:22:46 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2025-04-07 21:21:51 +0000

    devel/py-attr: New port: Simple decorator to set attributes of target function/class in DRY way
---
 devel/Makefile          |  1 +
 devel/py-attr/Makefile  | 19 +++++++++++++++++++
 devel/py-attr/distinfo  |  3 +++
 devel/py-attr/pkg-descr |  2 ++
 4 files changed, 25 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index 78d2e25c63ed..0904a3543c93 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -4442,6 +4442,7 @@
     SUBDIR += py-atomiclong
     SUBDIR += py-atomicwrites
     SUBDIR += py-atpublic
+    SUBDIR += py-attr
     SUBDIR += py-attrdict
     SUBDIR += py-attrs
     SUBDIR += py-attrs-strict
diff --git a/devel/py-attr/Makefile b/devel/py-attr/Makefile
new file mode 100644
index 000000000000..bd1b0e00f6d6
--- /dev/null
+++ b/devel/py-attr/Makefile
@@ -0,0 +1,19 @@
+PORTNAME=	attr
+PORTVERSION=	0.3.2
+CATEGORIES=	devel python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	Simple decorator to set attributes of target function/class in DRY way
+WWW=		https://github.com/denis-ryzhkov/attr
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+USES=		python
+USE_PYTHON=	distutils autoplist
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/devel/py-attr/distinfo b/devel/py-attr/distinfo
new file mode 100644
index 000000000000..987f368418dd
--- /dev/null
+++ b/devel/py-attr/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1744006118
+SHA256 (attr-0.3.2.tar.gz) = 1ceebca768181cdcce9827611b1d728e592be5d293911539ea3d0b0bfa1146f4
+SIZE (attr-0.3.2.tar.gz) = 2649
diff --git a/devel/py-attr/pkg-descr b/devel/py-attr/pkg-descr
new file mode 100644
index 000000000000..54cace741f9d
--- /dev/null
+++ b/devel/py-attr/pkg-descr
@@ -0,0 +1,2 @@
+attr is a simple decorator to set attributes of target function or class in
+a DRY way.