[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
222/233: gnu: Add python-beartype.
From: |
guix-commits |
Subject: |
222/233: gnu: Add python-beartype. |
Date: |
Sun, 24 Apr 2022 23:40:09 -0400 (EDT) |
apteryx pushed a commit to branch wip-ipython-polyglossia
in repository guix.
commit d49bb36a4e0f394a0c018564c740eddee9d60ee0
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Thu Apr 21 23:14:29 2022 -0400
gnu: Add python-beartype.
* gnu/packages/python-check.scm (python-beartype): New variable.
---
gnu/packages/python-check.scm | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm
index f96807e3a2..51f30d412e 100644
--- a/gnu/packages/python-check.scm
+++ b/gnu/packages/python-check.scm
@@ -69,6 +69,38 @@ Protocol (TAP) in Python. TAP is a line based test protocol
for recording test
data in a standard way.")
(license license:bsd-3)))
+(define-public python-beartype
+ (package
+ (name "python-beartype")
+ (version "0.10.4")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "beartype" version))
+ (sha256
+ (base32 "0amzckgw9c93bl4jf0q6322j9wyyf3i8vl03yixfkrpllzv6kv14"))))
+ (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" "beartype_test"
+ ;; These tests rely on git through the
+ ;; "get_main_readme_file" helper.
+ "-k"
+ (string-append "not test_doc_readme "
+ "and not test_sphinx "
+ "and not test_pep561_mypy"))))))))
+ (native-inputs
+ (list python-pytest))
+ (home-page "https://github.com/beartype/beartype")
+ (synopsis "Fast runtime type checking for Python")
+ (description "Beartype aims to be a very fast runtime type checking tool
+written in pure Python.")
+ (license license:expat)))
+
(define-public python-pytest-click
(package
(name "python-pytest-click")
- 206/233: gnu: Remove python2-keyring., (continued)
- 206/233: gnu: Remove python2-keyring., guix-commits, 2022/04/24
- 210/233: snippets: Add a 'remove' snippet., guix-commits, 2022/04/24
- 211/233: gnu: python2-sqlalchemy: Skip a failing test., guix-commits, 2022/04/24
- 212/233: gnu: dynaconf: Fix build following python-click upgrade., guix-commits, 2022/04/24
- 213/233: gnu: python-numpydoc: Update to 1.2.1., guix-commits, 2022/04/24
- 214/233: gnu: python-sphinx: Update to 4.5.0., guix-commits, 2022/04/24
- 217/233: gnu: python-sphinx-click: Update to 4.0.3 and enable tests., guix-commits, 2022/04/24
- 220/233: gnu: python-sphinx-argparse: Update to 0.3.1., guix-commits, 2022/04/24
- 221/233: gnu: python-sphinx-cloud-sptheme: Update to 1.10.1 [still broken]., guix-commits, 2022/04/24
- 224/233: gnu: python-sphinx-autodoc-typehints: Update to 1.18.1., guix-commits, 2022/04/24
- 222/233: gnu: Add python-beartype.,
guix-commits <=
- 228/233: gnu: Add python-ipdb., guix-commits, 2022/04/24
- 230/233: pack: Fix match error when packing multiple packages in a deb archive., guix-commits, 2022/04/24
- 231/233: gnu: Add python-mpl-sphinx-theme., guix-commits, 2022/04/24
- 232/233: gnu: Add texlive-underscore., guix-commits, 2022/04/24