[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
222/242: gnu: Add python-beartype.
From: |
guix-commits |
Subject: |
222/242: gnu: Add python-beartype. |
Date: |
Thu, 12 May 2022 14:14:45 -0400 (EDT) |
apteryx pushed a commit to branch master
in repository guix.
commit 50b620f119e3aea2876f4b8580a49de059fc038b
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 41b73172b0..8cabd05dd5 100644
--- a/gnu/packages/python-check.scm
+++ b/gnu/packages/python-check.scm
@@ -70,6 +70,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")
- 182/242: gnu: python-bitstruct: Update to 8.14.0., (continued)
- 182/242: gnu: python-bitstruct: Update to 8.14.0., guix-commits, 2022/05/12
- 181/242: gnu: Add python-argparse-addons., guix-commits, 2022/05/12
- 196/242: gnu: python-miio: Update to 0.5.11., guix-commits, 2022/05/12
- 177/242: gnu: python-can: Update to 4.0.0., guix-commits, 2022/05/12
- 189/242: gnu: Add python-mdx-gh-links., guix-commits, 2022/05/12
- 190/242: gnu: python-mkdocs: Update to 1.3.0., guix-commits, 2022/05/12
- 199/242: gnu: weasyprint: Update to 54.3., guix-commits, 2022/05/12
- 211/242: gnu: python2-sqlalchemy: Skip a failing test., guix-commits, 2022/05/12
- 217/242: gnu: python-sphinx-click: Update to 4.0.3 and enable tests., guix-commits, 2022/05/12
- 224/242: gnu: python-sphinx-autodoc-typehints: Update to 1.18.1., guix-commits, 2022/05/12
- 222/242: gnu: Add python-beartype.,
guix-commits <=
- 225/242: gnu: python-sphinxext-opengraph: Update to 0.6.3., guix-commits, 2022/05/12
- 226/242: gnu: python-sphinx-rtd-theme: Update to 1.0.0., guix-commits, 2022/05/12
- 57/242: gnu: Add python-pip-run., guix-commits, 2022/05/12
- 10/242: gnu: python-ipython: Update to 8.2.0 [fixes CVE-2022-21699]., guix-commits, 2022/05/12
- 19/242: gnu: Add python-pcpp., guix-commits, 2022/05/12
- 36/242: gnu: Add python-types-toml., guix-commits, 2022/05/12
- 45/242: gnu: Add python-path-bootstrap., guix-commits, 2022/05/12
- 58/242: gnu: Add python-tempora., guix-commits, 2022/05/12
- 75/242: gnu: python-scipy: Update to 1.8.0 and enable parallel build., guix-commits, 2022/05/12
- 81/242: gnu: Add python-skia-pathops., guix-commits, 2022/05/12