mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-28 07:12:30 -05:00
gnu: Add python-typeapi.
* gnu/packages/python-xyz.scm (python-typeapi): New variable. Change-Id: Id89f3152bcd593d677c4fcb7c98d586cd50e820b
This commit is contained in:
parent
7dfe41aa71
commit
6b81503bae
1 changed files with 30 additions and 0 deletions
|
@ -19979,6 +19979,36 @@ (define-public python-libcst-minimal
|
|||
(arguments '(#:tests? #f))
|
||||
(native-inputs '()))))
|
||||
|
||||
(define-public python-typeapi
|
||||
(package
|
||||
(name "python-typeapi")
|
||||
(version "2.1.1")
|
||||
(source
|
||||
(origin
|
||||
(method url-fetch)
|
||||
(uri (pypi-uri "typeapi" version))
|
||||
(sha256
|
||||
(base32 "1652fc04gn6nkw8izim0g7v586f64fla6clinp5xq9rf739w3cs9"))))
|
||||
(build-system pyproject-build-system)
|
||||
(arguments
|
||||
(list
|
||||
#:tests? #false ;there are none
|
||||
#:phases
|
||||
'(modify-phases %standard-phases
|
||||
(add-after 'unpack 'patch-build-system
|
||||
(lambda _
|
||||
(substitute* "pyproject.toml"
|
||||
(("^docs =.*") "docs = []\n")))))))
|
||||
(propagated-inputs (list python-typing-extensions))
|
||||
(native-inputs (list python-poetry-core))
|
||||
(home-page "https://pypi.org/project/typeapi/")
|
||||
(synopsis "Type hints")
|
||||
(description "The typeapi package provides an object-oriented interface
|
||||
for introspecting PEP484 type hints at runtime, including forward references
|
||||
that make use of the more recent PEP585 and PEP604 type hint features in
|
||||
Python versions that don't natively support them.")
|
||||
(license license:expat)))
|
||||
|
||||
(define-public python-typing-inspect
|
||||
(package
|
||||
(name "python-typing-inspect")
|
||||
|
|
Loading…
Reference in a new issue