git: 03ae201ba139 - main - devel/py-aiosignal: Add py-aiosignal 1.2.0
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 25 Mar 2022 13:42:24 UTC
The branch main has been updated by sunpoet:
URL: https://cgit.FreeBSD.org/ports/commit/?id=03ae201ba13993df42aa8d5b7921094aa198d704
commit 03ae201ba13993df42aa8d5b7921094aa198d704
Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-03-25 12:45:26 +0000
Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-03-25 13:36:37 +0000
devel/py-aiosignal: Add py-aiosignal 1.2.0
Signal is a list of registered asynchronous callbacks.
The signal's life-cycle has two stages: after creation its content could be
filled by using standard list operations: sig.append() etc.
After you call sig.freeze() the signal is frozen: adding, removing and dropping
callbacks is forbidden.
The only available operation is calling the previously registered callbacks by
using await sig.send(data).
WWW: https://github.com/aio-libs/aiosignal
---
devel/Makefile | 1 +
devel/py-aiosignal/Makefile | 22 ++++++++++++++++++++++
devel/py-aiosignal/distinfo | 3 +++
devel/py-aiosignal/pkg-descr | 12 ++++++++++++
4 files changed, 38 insertions(+)
diff --git a/devel/Makefile b/devel/Makefile
index 8b4793736c29..37e870d12dc2 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -4146,6 +4146,7 @@
SUBDIR += py-aiorpcX
SUBDIR += py-aiorpcX-legacy
SUBDIR += py-aiortc
+ SUBDIR += py-aiosignal
SUBDIR += py-amalgamate
SUBDIR += py-aniso8601
SUBDIR += py-aniso86016
diff --git a/devel/py-aiosignal/Makefile b/devel/py-aiosignal/Makefile
new file mode 100644
index 000000000000..1b3a6d73abb4
--- /dev/null
+++ b/devel/py-aiosignal/Makefile
@@ -0,0 +1,22 @@
+# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
+
+PORTNAME= aiosignal
+PORTVERSION= 1.2.0
+CATEGORIES= devel python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= sunpoet@FreeBSD.org
+COMMENT= List of registered asynchronous callbacks
+
+LICENSE= APACHE20
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}frozenlist>=1.1.0:devel/py-frozenlist@${PY_FLAVOR}
+
+USES= python:3.6+
+USE_PYTHON= autoplist concurrent distutils
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/devel/py-aiosignal/distinfo b/devel/py-aiosignal/distinfo
new file mode 100644
index 000000000000..f155499706a0
--- /dev/null
+++ b/devel/py-aiosignal/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1647264400
+SHA256 (aiosignal-1.2.0.tar.gz) = 78ed67db6c7b7ced4f98e495e572106d5c432a93e1ddd1bf475e1dc05f5b7df2
+SIZE (aiosignal-1.2.0.tar.gz) = 19692
diff --git a/devel/py-aiosignal/pkg-descr b/devel/py-aiosignal/pkg-descr
new file mode 100644
index 000000000000..12bb231b16ec
--- /dev/null
+++ b/devel/py-aiosignal/pkg-descr
@@ -0,0 +1,12 @@
+Signal is a list of registered asynchronous callbacks.
+
+The signal's life-cycle has two stages: after creation its content could be
+filled by using standard list operations: sig.append() etc.
+
+After you call sig.freeze() the signal is frozen: adding, removing and dropping
+callbacks is forbidden.
+
+The only available operation is calling the previously registered callbacks by
+using await sig.send(data).
+
+WWW: https://github.com/aio-libs/aiosignal