mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-18 12:47:33 -05:00
gnu: Add python-typeguard.
* gnu/packages/python-xyz.scm (python-typeguard): New variable.
This commit is contained in:
parent
16f9ca544d
commit
aec7c0cb44
1 changed files with 31 additions and 0 deletions
|
@ -21363,6 +21363,37 @@ (define-public python-typer
|
|||
;; 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")
|
||||
|
|
Loading…
Reference in a new issue