blob: 501eec31f9353d69d2f21a2a2c11fa8fe47aca81 [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001#
2# Copyright (C) 2021 CZ.NIC, z. s. p. o. (https://www.nic.cz/)
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=python-typing-extensions
11PKG_VERSION:=4.9.0
12PKG_RELEASE:=1
13
14PYPI_NAME:=typing-extensions
15PYPI_SOURCE_NAME:=typing_extensions
16PKG_HASH:=23478f88c37f27d76ac8aee6c905017a143b0b1b886c3c9f66bc2fd94f9f5783
17
18PKG_MAINTAINER:=Jan Pavlinec <jan.pavlinec1@gmail.com>, Jeffery To <jeffery.to@gmail.com>
19PKG_LICENSE:=Python-2.0.1 0BSD
20PKG_LICENSE_FILES:=LICENSE
21
22PKG_BUILD_DEPENDS:=python-flit-core/host
23HOST_BUILD_DEPENDS:=python3/host python-build/host python-installer/host python-flit-core/host
24
25include ../pypi.mk
26include $(INCLUDE_DIR)/package.mk
27include $(INCLUDE_DIR)/host-build.mk
28include ../python3-package.mk
29include ../python3-host-build.mk
30
31define Package/python3-typing-extensions
32 SUBMENU:=Python
33 SECTION:=lang
34 CATEGORY:=Languages
35 TITLE:=Backported and Experimental Type Hints
36 URL:=https://github.com/python/typing_extensions
37 DEPENDS:=+python3-light
38endef
39
40define Package/python3-typing-extensions/description
41The typing_extensions module serves two related purposes:
42
43* Enable use of new type system features on older Python versions. For
44 example, typing.TypeGuard is new in Python 3.10, but typing_extensions
45 allows users on previous Python versions to use it too.
46
47* Enable experimentation with new type system PEPs before they are
48 accepted and added to the typing module.
49endef
50
51$(eval $(call Py3Package,python3-typing-extensions))
52$(eval $(call BuildPackage,python3-typing-extensions))
53$(eval $(call BuildPackage,python3-typing-extensions-src))
54$(eval $(call HostBuild))