[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
08/10: gnu: Add python-trio-typing.
From: |
guix-commits |
Subject: |
08/10: gnu: Add python-trio-typing. |
Date: |
Mon, 7 Sep 2020 03:08:11 -0400 (EDT) |
mothacehe pushed a commit to branch master
in repository guix.
commit 6cdf102ac5dcfeb7d79e92922a8a4bcaeb6d348b
Author: Vinicius Monego <monego@posteo.net>
AuthorDate: Sun Sep 6 02:46:51 2020 -0300
gnu: Add python-trio-typing.
* gnu/packages/python-xyz.scm (python-trio-typing): New variable.
Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
---
gnu/packages/python-xyz.scm | 48 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 48 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index c189123..98bf8b8 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -19259,6 +19259,54 @@ programs that do multiple things at the same time with
parallelized I/O.")
;; Either license applies.
(license (list license:expat license:asl2.0))))
+(define-public python-trio-typing
+ (package
+ (name "python-trio-typing")
+ (version "0.5.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "trio-typing" version))
+ (sha256
+ (base32 "1yvlj4vf3wyvp16dw6vyfm4i2idm8lvdc3fvjhi6mhm62zv7s07j"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (replace 'check
+ (lambda _
+ (invoke "pytest" "-vv"))))))
+ (native-inputs
+ `(("python-attrs" ,python-attrs)
+ ("python-pytest" ,python-pytest)))
+ (propagated-inputs
+ `(("python-mypy" ,python-mypy)
+ ("python-mypy-extensions"
+ ,python-mypy-extensions)
+ ("python-trio" ,python-trio)
+ ("python-typing-extensions"
+ ,python-typing-extensions)))
+ (home-page "https://github.com/python-trio/trio-typing")
+ (synopsis "Static type checking support for Trio and related projects")
+ (description
+ "This package provides:
+
+@itemize
+@item PEP 561 typing stubs packages for the Trio project packages:
+
+@itemize
+@item trio (@code{trio-stubs})
+@item outcome (@code{outcome-stubs})
+@item async_generator (@code{async_generator-stubs})
+@end itemize
+
+@item A package @code{trio_typing} containing types that Trio programs often
+want to refer to (@code{AsyncGenerator[Y, S]} and @code{TaskStatus[T])} and
+a mypy plugin that smooths over some limitations in the basic type hints.
+@end itemize")
+ ;; Either license applies.
+ (license (list license:expat license:asl2.0))))
+
(define-public python-humanize
(package
(name "python-humanize")
- branch master updated (2e5fef8 -> 32bf033), guix-commits, 2020/09/07
- 01/10: gnu: Add python-httptools., guix-commits, 2020/09/07
- 02/10: gnu: Add python-uvloop., guix-commits, 2020/09/07
- 03/10: gnu: Add python-pytest-toolbox., guix-commits, 2020/09/07
- 04/10: gnu: Add python-watchgod., guix-commits, 2020/09/07
- 05/10: gnu: Add python-uvicorn., guix-commits, 2020/09/07
- 06/10: gnu: Add python-flake8-pie., guix-commits, 2020/09/07
- 07/10: gnu: Add python-autoflake., guix-commits, 2020/09/07
- 09/10: gnu: Add python-httpcore., guix-commits, 2020/09/07
- 08/10: gnu: Add python-trio-typing.,
guix-commits <=
- 10/10: gnu: Add python-httpx., guix-commits, 2020/09/07