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