[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
06/28: gnu: Add python-typeguard.
From: |
guix-commits |
Subject: |
06/28: gnu: Add python-typeguard. |
Date: |
Sat, 22 Jan 2022 04:23:43 -0500 (EST) |
mbakke pushed a commit to branch master
in repository guix.
commit aec7c0cb447161bdaa0ac7e1d41feebb75cd3b7b
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Fri Jan 21 20:29:56 2022 +0100
gnu: Add python-typeguard.
* gnu/packages/python-xyz.scm (python-typeguard): New variable.
---
gnu/packages/python-xyz.scm | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index f16771173c..1afc1a2850 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -21363,6 +21363,37 @@ Python 3.6+ type hints.")
;; MIT license
(license license:expat)))
+(define-public python-typeguard
+ (package
+ (name "python-typeguard")
+ (version "2.13.3")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "typeguard" version))
+ (sha256
+ (base32 "1i5qzcyw2715h1g1hvj7fxykck2bkxyshpngjr3nfcx1lf6smv80"))))
+ (build-system python-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "pytest" "-vv" "-k"
+ ;; XXX: These fail when installed as a library:
+ ;; https://github.com/agronholm/typeguard/issues/176
+ "not usefixtures and not test_cached_module")))))))
+ (native-inputs
+ (list python-mypy python-pytest python-typing-extensions))
+ (home-page "https://github.com/agronholm/typeguard")
+ (synopsis "Run-time type checker for Python")
+ (description
+ "@code{typeguard} provides run-time type checking for functions defined
+with PEP 484 argument (and return) type annotations.")
+ (license license:expat)))
+
(define-public python-typing
(package
(name "python-typing")
- branch master updated (e22957fc15 -> 97176b4d9c), guix-commits, 2022/01/22
- 03/28: gnu: Add pproxy., guix-commits, 2022/01/22
- 01/28: gnu: python-psycopg2: Update to 2.9.3., guix-commits, 2022/01/22
- 02/28: gnu: postgresql: Add 14.1., guix-commits, 2022/01/22
- 04/28: gnu: python-cython: Add 3.0.0a10., guix-commits, 2022/01/22
- 12/28: gnu: python-pandas: Remove old version., guix-commits, 2022/01/22
- 11/28: gnu: Add python-psycopg., guix-commits, 2022/01/22
- 14/28: gnu: python-tqdm: Update to 4.62.3., guix-commits, 2022/01/22
- 06/28: gnu: Add python-typeguard.,
guix-commits <=
- 08/28: gnu: python-pytest-mock: Cope with test warnings., guix-commits, 2022/01/22
- 07/28: gnu: python-tenacity: Update to 8.0.1., guix-commits, 2022/01/22
- 05/28: gnu: python-mypy: Update to 0.931., guix-commits, 2022/01/22
- 09/28: gnu: python-pytest-asyncio: Update to 0.17.2., guix-commits, 2022/01/22
- 17/28: gnu: python-flask: Update to 2.0.2., guix-commits, 2022/01/22
- 20/28: gnu: Deprecate python-flask-restplus., guix-commits, 2022/01/22
- 24/28: gnu: behave: Update to 1.2.7.dev2., guix-commits, 2022/01/22
- 10/28: gnu: Add python-psycopg-pool., guix-commits, 2022/01/22
- 18/28: gnu: python-flask-session: Update to 0.4.0., guix-commits, 2022/01/22
- 22/28: gnu: Add python-pytest-metadata., guix-commits, 2022/01/22