dd6cfe7ac9e51fdcc1f911dc0d451717b403e67e
[feed/packages.git] / lang / python / python-typing-extensions / Makefile
1 #
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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=python-typing-extensions
11 PKG_VERSION:=4.6.2
12 PKG_RELEASE:=1
13
14 PYPI_NAME:=typing-extensions
15 PYPI_SOURCE_NAME:=typing_extensions
16 PKG_HASH:=06006244c70ac8ee83fa8282cb188f697b8db25bc8b4df07be1873c43897060c
17
18 PKG_MAINTAINER:=Jan Pavlinec <jan.pavlinec1@gmail.com>, Jeffery To <jeffery.to@gmail.com>
19 PKG_LICENSE:=Python-2.0.1 0BSD
20 PKG_LICENSE_FILES:=LICENSE
21
22 PKG_BUILD_DEPENDS:=python-flit-core/host
23 HOST_BUILD_DEPENDS:=python3/host python-build/host python-installer/host python-flit-core/host
24
25 include ../pypi.mk
26 include $(INCLUDE_DIR)/package.mk
27 include $(INCLUDE_DIR)/host-build.mk
28 include ../python3-package.mk
29 include ../python3-host-build.mk
30
31 define 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
38 endef
39
40 define Package/python3-typing-extensions/description
41 The 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.
49 endef
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))