[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
04/07: gnu: Add python-typeapi.
From: |
guix-commits |
Subject: |
04/07: gnu: Add python-typeapi. |
Date: |
Mon, 15 Jan 2024 17:34:13 -0500 (EST) |
rekado pushed a commit to branch master
in repository guix.
commit 6b81503bae62a23ecf4045e9dfe145ead90c5332
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Mon Jan 15 22:46:44 2024 +0100
gnu: Add python-typeapi.
* gnu/packages/python-xyz.scm (python-typeapi): New variable.
Change-Id: Id89f3152bcd593d677c4fcb7c98d586cd50e820b
---
gnu/packages/python-xyz.scm | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index b4cccad062..8fb1d5fc19 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -19979,6 +19979,36 @@ feels like an AST.")
(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")
- branch master updated (19db1551dc -> ddde736722), guix-commits, 2024/01/15
- 07/07: gnu: Add python-docspec., guix-commits, 2024/01/15
- 06/07: gnu: Add python-databind-json., guix-commits, 2024/01/15
- 03/07: gnu: Add python-nr-stream., guix-commits, 2024/01/15
- 04/07: gnu: Add python-typeapi.,
guix-commits <=
- 05/07: gnu: Add python-databind-core., guix-commits, 2024/01/15
- 02/07: gnu: Add python-nr-date., guix-commits, 2024/01/15
- 01/07: gnu: Add python-namex., guix-commits, 2024/01/15