git: ec20f86f913d - main - Add comms/py-pyserial-asyncio: Async I/O support for pyserial
Date: Mon, 24 Oct 2022 15:01:01 UTC
The branch main has been updated by lwhsu:
URL: https://cgit.FreeBSD.org/ports/commit/?id=ec20f86f913d3355e6a63e2eb96a6c813652850a
commit ec20f86f913d3355e6a63e2eb96a6c813652850a
Author: Christian Ullrich <chris@chrullrich.net>
AuthorDate: 2022-10-24 14:59:14 +0000
Commit: Li-Wen Hsu <lwhsu@FreeBSD.org>
CommitDate: 2022-10-24 15:00:31 +0000
Add comms/py-pyserial-asyncio: Async I/O support for pyserial
PR: 267306
---
comms/Makefile | 1 +
comms/py-pyserial-asyncio/Makefile | 27 +++++++++++++++++++++++++++
comms/py-pyserial-asyncio/distinfo | 3 +++
comms/py-pyserial-asyncio/pkg-descr | 2 ++
4 files changed, 33 insertions(+)
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.