aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Ullrich <chris@chrullrich.net>2022-10-24 14:59:14 +0000
committerLi-Wen Hsu <lwhsu@FreeBSD.org>2022-10-24 15:00:31 +0000
commitec20f86f913d3355e6a63e2eb96a6c813652850a (patch)
tree6fcb7f9d50e0890dd81890a8f7d01d43b7616701
parent14cdcc93ba152520eb0bf0eba3c1f83fc38d8f3f (diff)
downloadports-ec20f86f913d3355e6a63e2eb96a6c813652850a.tar.gz
ports-ec20f86f913d3355e6a63e2eb96a6c813652850a.zip
Add comms/py-pyserial-asyncio: Async I/O support for pyserial
PR: 267306
-rw-r--r--comms/Makefile1
-rw-r--r--comms/py-pyserial-asyncio/Makefile27
-rw-r--r--comms/py-pyserial-asyncio/distinfo3
-rw-r--r--comms/py-pyserial-asyncio/pkg-descr2
4 files changed, 33 insertions, 0 deletions
diff --git a/comms/Makefile b/comms/Makefile
index 89ee6a0f75e2..80cc88dd6916 100644
--- a/comms/Makefile
+++ b/comms/Makefile
@@ -139,6 +139,7 @@
SUBDIR += py-libimobiledevice
SUBDIR += py-libscrc
SUBDIR += py-pyserial
+ SUBDIR += py-pyserial-asyncio
SUBDIR += py-xmodem
SUBDIR += pyla
SUBDIR += qico
diff --git a/comms/py-pyserial-asyncio/Makefile b/comms/py-pyserial-asyncio/Makefile
new file mode 100644
index 000000000000..aa05480f1c32
--- /dev/null
+++ b/comms/py-pyserial-asyncio/Makefile
@@ -0,0 +1,27 @@
+PORTNAME= pyserial-asyncio
+DISTVERSIONPREFIX= v
+DISTVERSION= 0.6
+CATEGORIES= comms python
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= chris@chrullrich.net
+COMMENT= Async I/O support for pyserial
+WWW= https://github.com/pyserial/pyserial-asyncio
+
+LICENSE= BSD3CLAUSE
+LICENSE_FILE= ${WRKSRC}/LICENSE.txt
+
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pyserial>=3.1.1:comms/py-pyserial@${PY_FLAVOR}
+
+USES= python:3.6+ shebangfix
+USE_PYTHON= autoplist concurrent distutils
+USE_GITHUB= yes
+GH_ACCOUNT= pyserial
+
+NO_ARCH= yes
+
+do-test:
+ ${SETENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} \
+ ${PYTHON_CMD} ${WRKSRC}/test/test_asyncio.py
+
+.include <bsd.port.mk>
diff --git a/comms/py-pyserial-asyncio/distinfo b/comms/py-pyserial-asyncio/distinfo
new file mode 100644
index 000000000000..4d27133e552a
--- /dev/null
+++ b/comms/py-pyserial-asyncio/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1665660449
+SHA256 (pyserial-pyserial-asyncio-v0.6_GH0.tar.gz) = a5214d89e01c36cace80cfe917525b145f4c878273a332b6476df58edcb1eec3
+SIZE (pyserial-pyserial-asyncio-v0.6_GH0.tar.gz) = 31164
diff --git a/comms/py-pyserial-asyncio/pkg-descr b/comms/py-pyserial-asyncio/pkg-descr
new file mode 100644
index 000000000000..47b7f128eae5
--- /dev/null
+++ b/comms/py-pyserial-asyncio/pkg-descr
@@ -0,0 +1,2 @@
+This module provides asynchronous I/O on serial ports, extending the
+pyserial module.