aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPo-Chuan Hsieh <sunpoet@FreeBSD.org>2021-07-24 20:20:49 +0000
committerPo-Chuan Hsieh <sunpoet@FreeBSD.org>2021-07-24 20:20:49 +0000
commit43e1bb7f3a78fcc95af29ea6848197b8c1e64e63 (patch)
tree3071ec3b9a086bb964b49b2442914bda8e398b20
parent3830a51e087c6cc007122ef7f4fed87956bc4608 (diff)
downloadports-43e1bb7f3a78fcc95af29ea6848197b8c1e64e63.tar.gz
ports-43e1bb7f3a78fcc95af29ea6848197b8c1e64e63.zip
devel/py-contextvars: Readd py-contextvars 2.4 (copied from r534742)
contextvars implements a backport of Python 3.7 contextvars module (see PEP 567) for Python 3.6. WWW: https://github.com/MagicStack/contextvars
-rw-r--r--devel/Makefile1
-rw-r--r--devel/py-contextvars/Makefile28
-rw-r--r--devel/py-contextvars/distinfo3
-rw-r--r--devel/py-contextvars/pkg-descr4
4 files changed, 36 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index a6b6f6a60fa0..7cba68f9edfe 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -4315,6 +4315,7 @@
SUBDIR += py-constantly
SUBDIR += py-construct
SUBDIR += py-contextlib2
+ SUBDIR += py-contextvars
SUBDIR += py-convertdate
SUBDIR += py-cookiecutter
SUBDIR += py-copier
diff --git a/devel/py-contextvars/Makefile b/devel/py-contextvars/Makefile
new file mode 100644
index 000000000000..a90fe59cba14
--- /dev/null
+++ b/devel/py-contextvars/Makefile
@@ -0,0 +1,28 @@
+# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
+
+PORTNAME= contextvars
+PORTVERSION= 2.4
+CATEGORIES= devel python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= sunpoet@FreeBSD.org
+COMMENT= PEP 567 backport
+
+LICENSE= APACHE20
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}immutables>=0.9:devel/py-immutables@${PY_FLAVOR}
+
+USES= python:3.6+
+USE_PYTHON= autoplist concurrent distutils
+
+NO_ARCH= yes
+
+.include <bsd.port.pre.mk>
+
+.if ${PYTHON_REL} >= 30700
+IGNORE= included in python ${PYTHON_VER}
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/py-contextvars/distinfo b/devel/py-contextvars/distinfo
new file mode 100644
index 000000000000..ff9ff5bf1b99
--- /dev/null
+++ b/devel/py-contextvars/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1588793342
+SHA256 (contextvars-2.4.tar.gz) = f38c908aaa59c14335eeea12abea5f443646216c4e29380d7bf34d2018e2c39e
+SIZE (contextvars-2.4.tar.gz) = 9570
diff --git a/devel/py-contextvars/pkg-descr b/devel/py-contextvars/pkg-descr
new file mode 100644
index 000000000000..e04d94f2af8f
--- /dev/null
+++ b/devel/py-contextvars/pkg-descr
@@ -0,0 +1,4 @@
+contextvars implements a backport of Python 3.7 contextvars module (see PEP 567)
+for Python 3.6.
+
+WWW: https://github.com/MagicStack/contextvars