2 # Copyright (C) 2021 CZ.NIC, z. s. p. o. (https://www.nic.cz/)
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
10 PKG_NAME
:=python-typing-extensions
14 PYPI_NAME
:=typing-extensions
15 PYPI_SOURCE_NAME
:=typing_extensions
16 PKG_HASH
:=06006244c70ac8ee83fa8282cb188f697b8db25bc8b4df07be1873c43897060c
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
22 PKG_BUILD_DEPENDS
:=python-flit-core
/host
23 HOST_BUILD_DEPENDS
:=python3
/host python-build
/host python-installer
/host python-flit-core
/host
26 include $(INCLUDE_DIR
)/package.mk
27 include $(INCLUDE_DIR
)/host-build.mk
28 include ..
/python3-package.mk
29 include ..
/python3-host-build.mk
31 define Package
/python3-typing-extensions
35 TITLE
:=Backported and Experimental Type Hints
36 URL
:=https
://github.com
/python
/typing_extensions
37 DEPENDS
:=+python3-light
40 define Package
/python3-typing-extensions
/description
41 The typing_extensions module serves two related purposes
:
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.
47 * Enable experimentation with new type system PEPs before they are
48 accepted and added to the typing module.
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
))