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
This commit is contained in:
Po-Chuan Hsieh 2021-07-25 04:20:49 +08:00
parent 3830a51e08
commit 43e1bb7f3a
No known key found for this signature in database
GPG key ID: 9A4BD10F002DD04B
4 changed files with 36 additions and 0 deletions

View file

@ -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

View file

@ -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>

View file

@ -0,0 +1,3 @@
TIMESTAMP = 1588793342
SHA256 (contextvars-2.4.tar.gz) = f38c908aaa59c14335eeea12abea5f443646216c4e29380d7bf34d2018e2c39e
SIZE (contextvars-2.4.tar.gz) = 9570

View file

@ -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