From 9df900341fa60f7a945bffd2ec00a59ece4d6f7b Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Sat, 15 Apr 2023 23:34:01 -0400 Subject: gnu: python-typing-extensions: Move to (gnu packages python-build). * gnu/packages/python-xyz.scm (python-typing-extensions): Move to... * gnu/packages/python-build.scm (python-typing-extensions): ... here. --- gnu/packages/python-build.scm | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) (limited to 'gnu/packages/python-build.scm') diff --git a/gnu/packages/python-build.scm b/gnu/packages/python-build.scm index de81894729..7f1ddf79da 100644 --- a/gnu/packages/python-build.scm +++ b/gnu/packages/python-build.scm @@ -5,9 +5,12 @@ ;;; Copyright © 2020, 2023 Marius Bakke ;;; Copyright © 2020 Tanguy Le Carrour ;;; Copyright © 2018, 2021, 2022, 2023 Maxim Cournoyer +;;; Copyright © 2019 Vagrant Cascadian ;;; Copyright © 2021 Tobias Geerinckx-Rice ;;; Copyright © 2020, 2021, 2022 Ricardo Wurmus ;;; Copyright © 2022 Garek Dyszel +;;; Copyright © 2022 Greg Hogan + ;;; ;;; This file is part of GNU Guix. ;;; @@ -210,6 +213,45 @@ (define-public python-trove-classifiers PyPI (pypi.org).") (license license:asl2.0))) +(define-public python-typing-extensions + (package + (name "python-typing-extensions") + (version "4.3.0") + (source (origin + (method url-fetch) + (uri (pypi-uri "typing_extensions" version)) + (sha256 + (base32 + "19n4l57qazwrbvxjrbxw2vvfyd0zbk8ivnwm4zmwfzzl69x6glp6")))) + (build-system pyproject-build-system) + ;; Disable the test suite to keep the dependencies to a minimum. Also, + ;; the test suite requires Python's test module, not available in Guix. + (arguments (list #:tests? #f)) + (native-inputs (list python-flit-core)) + (home-page "https://github.com/python/typing/typing_extensions") + (synopsis "Experimental type hints for Python") + (description + "The typing_extensions module contains additional @code{typing} hints not +yet present in the of the @code{typing} standard library. +Included are implementations of: +@enumerate +@item ClassVar +@item ContextManager +@item Counter +@item DefaultDict +@item Deque +@item NewType +@item NoReturn +@item overload +@item Protocol +@item runtime +@item Text +@item Type +@item TYPE_CHECKING +@item AsyncGenerator +@end enumerate\n") + (license license:psfl))) + ;;; ;;; Python builder packages. -- cgit v1.2.3