git: 3cc3b89d0205 - main - devel/py-aiocontextvars: add port: Asyncio support for PEP-567 contextvars backport

From: Hiroki Tagato <tagattie_at_FreeBSD.org>
Date: Sun, 26 Dec 2021 03:00:12 UTC
The branch main has been updated by tagattie:

URL: https://cgit.FreeBSD.org/ports/commit/?id=3cc3b89d020505e52d4a5a93c1f283b78f46d4a9

commit 3cc3b89d020505e52d4a5a93c1f283b78f46d4a9
Author:     Goran Mekić <meka@tilda.center>
AuthorDate: 2021-12-26 02:57:55 +0000
Commit:     Hiroki Tagato <tagattie@FreeBSD.org>
CommitDate: 2021-12-26 02:57:55 +0000

    devel/py-aiocontextvars: add port: Asyncio support for PEP-567 contextvars backport
    
    Contextvars with asyncio support.
    
    WWW: https://github.com/fantix/aiocontextvars
    
    PR:             257332
    Reported by:    Goran Mekić <meka@tilda.center> (new maintainer)
---
 devel/Makefile                    |  1 +
 devel/py-aiocontextvars/Makefile  | 28 ++++++++++++++++++++++++++++
 devel/py-aiocontextvars/distinfo  |  3 +++
 devel/py-aiocontextvars/pkg-descr |  3 +++
 4 files changed, 35 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index 7dfd0e062a09..1084f41480be 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -4130,6 +4130,7 @@
     SUBDIR += py-adb
     SUBDIR += py-addict
     SUBDIR += py-aenum
+    SUBDIR += py-aiocontextvars
     SUBDIR += py-aiofiles
     SUBDIR += py-aioice
     SUBDIR += py-aioitertools
diff --git a/devel/py-aiocontextvars/Makefile b/devel/py-aiocontextvars/Makefile
new file mode 100644
index 000000000000..c897cd85f9df
--- /dev/null
+++ b/devel/py-aiocontextvars/Makefile
@@ -0,0 +1,28 @@
+PORTNAME=	aiocontextvars
+PORTVERSION=	0.2.2
+CATEGORIES=	devel python
+MASTER_SITES=	CHEESESHOP
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	meka@tilda.center
+COMMENT=	Asyncio support for PEP-567 contextvars backport
+
+LICENSE=	BSD3CLAUSE
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pip>=0:devel/py-pip@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pytest-runner>=0:devel/py-pytest-runner@${PY_FLAVOR}
+TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pytest>=0:devel/py-pytest@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pytest-asyncio>=0:devel/py-pytest-asyncio@${PY_FLAVOR}
+
+USES=		python:3.5+
+USE_PYTHON=	autoplist concurrent distutils
+
+TEST_ENV=	PYTHONPATH=${WRKSRC}/src
+
+NO_ARCH=	yes
+
+do-test:
+	cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest -v -rs -o addopts=
+
+.include <bsd.port.mk>
diff --git a/devel/py-aiocontextvars/distinfo b/devel/py-aiocontextvars/distinfo
new file mode 100644
index 000000000000..086e6150ff32
--- /dev/null
+++ b/devel/py-aiocontextvars/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1626953771
+SHA256 (aiocontextvars-0.2.2.tar.gz) = f027372dc48641f683c559f247bd84962becaacdc9ba711d583c3871fb5652aa
+SIZE (aiocontextvars-0.2.2.tar.gz) = 13565
diff --git a/devel/py-aiocontextvars/pkg-descr b/devel/py-aiocontextvars/pkg-descr
new file mode 100644
index 000000000000..bb46a4eddde5
--- /dev/null
+++ b/devel/py-aiocontextvars/pkg-descr
@@ -0,0 +1,3 @@
+Contextvars with asyncio support.
+
+WWW: https://github.com/fantix/aiocontextvars