Subject: [bug#41807] [PATCH 03/26] gnu: Add python-contextvars.

From: Giacomo Leidi <[email-masked]>
Date: Thu, 11 Jun 2020 17:13:34 +0200

* gnu/packages/python-xyz.scm (python-contextvars): New variable.
---
 gnu/packages/python-xyz.scm | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 106a6802bd..03d30b9d15 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -20124,3 +20124,24 @@ Immutable mappings based on HAMT have O(log N) performance for both @code{set()}
 and @code{get()} operations, which is essentially O(1) for relatively
 small mappings.")
     (license license:asl2.0)))
+
+(define-public python-contextvars
+  (package
+    (name "python-contextvars")
+    (version "2.4")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (pypi-uri "contextvars" version))
+        (sha256
+          (base32
+            "17n3w8c20kgkgc6khaafdhhlcdj4bzman4paxqsl7harma59137k"))))
+    (build-system python-build-system)
+    (propagated-inputs
+      `(("python-immutables" ,python-immutables)))
+    (home-page
+      "https://github.com/MagicStack/contextvars")
+    (synopsis "PEP 567 Backport")
+    (description "This package implements a backport of Python 3.7
+@code{contextvars} module (see PEP 567) for Python 3.6.")
+    (license license:asl2.0)))
-- 
2.26.2