git: a1b3cba71b9f - main - www/py-aiostream: Add to the pool
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 20 Dec 2022 04:26:33 UTC
The branch main has been updated by rigoletto:
URL: https://cgit.FreeBSD.org/ports/commit/?id=a1b3cba71b9f14f11c2bf50d041c5e88679007a4
commit a1b3cba71b9f14f11c2bf50d041c5e88679007a4
Author: Alexandre C. Guimarães <rigoletto@FreeBSD.org>
AuthorDate: 2022-12-20 04:13:46 +0000
Commit: Alexandre C. Guimarães <rigoletto@FreeBSD.org>
CommitDate: 2022-12-20 04:24:01 +0000
www/py-aiostream: Add to the pool
- necessary to deskutils/py-vdirsyncer
---
www/Makefile | 1 +
www/py-aiostream/Makefile | 17 +++++++++++++++++
www/py-aiostream/distinfo | 3 +++
www/py-aiostream/pkg-descr | 13 +++++++++++++
4 files changed, 34 insertions(+)
diff --git a/www/Makefile b/www/Makefile
index 8829013dbc4b..b3591592fc38 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -1421,6 +1421,7 @@
SUBDIR += py-aiohttp-wsgi
SUBDIR += py-aiohttp_cors
SUBDIR += py-aioquic
+ SUBDIR += py-aiostream
SUBDIR += py-arxiv
SUBDIR += py-asgi-csrf
SUBDIR += py-asgiref
diff --git a/www/py-aiostream/Makefile b/www/py-aiostream/Makefile
new file mode 100644
index 000000000000..ea368e9e7e5d
--- /dev/null
+++ b/www/py-aiostream/Makefile
@@ -0,0 +1,17 @@
+PORTNAME= aiostream
+DISTVERSION= 0.4.5
+CATEGORIES= www python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= rigoletto@FreeBSD.org
+COMMENT= Generator-based operators for asynchronous iteration
+WWW= https://github.com/vxgmichel/aiostream
+
+LICENSE= GPLv3
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+USES= python:3.7+
+USE_PYTHON= autoplist distutils
+
+.include <bsd.port.mk>
diff --git a/www/py-aiostream/distinfo b/www/py-aiostream/distinfo
new file mode 100644
index 000000000000..5718735ce069
--- /dev/null
+++ b/www/py-aiostream/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1671508635
+SHA256 (aiostream-0.4.5.tar.gz) = 3ecbf87085230fbcd9605c32ca20c4fb41af02c71d076eab246ea22e35947d88
+SIZE (aiostream-0.4.5.tar.gz) = 32627
diff --git a/www/py-aiostream/pkg-descr b/www/py-aiostream/pkg-descr
new file mode 100644
index 000000000000..d84029f20ae4
--- /dev/null
+++ b/www/py-aiostream/pkg-descr
@@ -0,0 +1,13 @@
+Generator-based operators for asynchronous iteration.
+
+It can be seen as an asynchronous version of itertools, although some
+aspects are slightly different. Essentially, all the provided operators
+return a unified interface called a stream. A stream is an enhanced
+asynchronous iterable providing the following features:
+
+ - Operator pipe-lining - using pipe symbol '|'
+ - Repeatability - every iteration creates a different iterator
+ - Safe iteration context - using 'async with' and the 'stream' method
+ - Simplified execution - get the last element from a stream using 'await'
+ - Slicing and indexing - using square brackets '[]'
+ - Concatenation - using addition symbol '+'