Subject: [bug#41807] [PATCH 05/26] gnu: Add python-sniffio.

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

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

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index ea6b68580f..d671c66e9d 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -20167,3 +20167,30 @@ small mappings.")
 systems programming.  It provides standard programming abstractions such
 as tasks, sockets, files, locks, and queues.")
     (license license:bsd-3)))
+
+(define-public python-sniffio
+  (package
+    (name "python-sniffio")
+    (version "1.1.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "sniffio" version))
+       (sha256
+        (base32
+         "08bsp2pp2dxzn9yzcafwzw8jlm0jf50as0ix8vfhxzk91w810f4f"))))
+    (build-system python-build-system)
+    (propagated-inputs
+     `(("python-contextvars" ,python-contextvars)
+       ("python-curio" ,python-curio)))
+    (native-inputs
+     `(("python-pytest" ,python-pytest)))
+    (home-page
+     "https://github.com/python-trio/sniffio")
+    (synopsis
+     "Detects which async library some code is running under")
+    (description
+     "@code{python-sniffio} enables detection of the async library any Python
+async function is running under.")
+    ;; Choice of either license.
+    (license (list license:expat license:asl2.0))))
-- 
2.26.2