diff mbox series

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

Message ID 20200611151357.18843-5-goodoldpaul@autistici.org
State Accepted
Headers show
Series [bug#41807,01/26] gnu: Add python-outcome. | expand

Checks

Context Check Description
cbaines/comparison success View comparision
cbaines/git branch success View Git branch
cbaines/applying patch success View Laminar job

Commit Message

Giacomo Leidi June 11, 2020, 3:13 p.m. UTC
* gnu/packages/python-xyz.scm: (python-sniffio): New variable.
---
 gnu/packages/python-xyz.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)
diff mbox series

Patch

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