guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#42721] [PATCH 3/3] gnu: Add python-sniffio.


From: Vinicius Monego
Subject: [bug#42721] [PATCH 3/3] gnu: Add python-sniffio.
Date: Wed, 5 Aug 2020 12:33:17 -0300

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

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 22a2176c4a..e4a83a2f37 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -8696,6 +8696,35 @@ designed to efficiently cope with extremely large 
amounts of data.")
 (define-public python2-tables
   (package-with-python2 python-tables))
 
+(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)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (replace 'check
+           (lambda _
+             (invoke "pytest" "-vv"))))))
+    (native-inputs
+     `(("python-curio" ,python-curio)
+       ("python-pytest" ,python-pytest)
+       ("python-pytest-cov" ,python-pytest-cov)))
+    (home-page "https://github.com/python-trio/sniffio";)
+    (synopsis "Sniff out which async library your code is running under")
+    (description
+     "This is a tiny package whose only purpose is to let you detect which 
async
+library your code is running under.")
+    ;; Either license applies.
+    (license (list license:expat license:asl2.0))))
+
 (define-public python-pytest-black
   (package
     (name "python-pytest-black")
-- 
2.20.1






reply via email to

[Prev in Thread] Current Thread [Next in Thread]