aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre C. GuimarĂ£es <rigoletto@FreeBSD.org>2022-12-20 04:13:46 +0000
committerAlexandre C. GuimarĂ£es <rigoletto@FreeBSD.org>2022-12-20 04:24:01 +0000
commita1b3cba71b9f14f11c2bf50d041c5e88679007a4 (patch)
treec5f9bac3c5bc4d1ebc22e8658c9b4bb77f9cfb80
parent941a3254902c7597e4465f6001d6bcecefb2d063 (diff)
www/py-aiostream: Add to the pool
- necessary to deskutils/py-vdirsyncer
-rw-r--r--www/Makefile1
-rw-r--r--www/py-aiostream/Makefile17
-rw-r--r--www/py-aiostream/distinfo3
-rw-r--r--www/py-aiostream/pkg-descr13
4 files changed, 34 insertions, 0 deletions
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 '+'