ngtcp2: Use APK style release number
[feed/packages.git] / lang / python / python-cython / Makefile
1 #
2 # Copyright (C) 2023 Jeffery To
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-cython
11 PKG_VERSION:=3.0.7
12 PKG_RELEASE:=1
13
14 PYPI_NAME:=Cython
15 PKG_HASH:=fb299acf3a578573c190c858d49e0cf9d75f4bc49c3f24c5a63804997ef09213
16
17 PKG_LICENSE:=Apache-2.0
18 PKG_LICENSE_FILES:=LICENSE.txt
19 PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
20
21 PKG_HOST_ONLY:=1
22 HOST_BUILD_DEPENDS:=python3/host python-build/host python-installer/host python-wheel/host
23
24 include ../pypi.mk
25 include $(INCLUDE_DIR)/package.mk
26 include $(INCLUDE_DIR)/host-build.mk
27 include ../python3-package.mk
28 include ../python3-host-build.mk
29
30 define Package/python3-cython
31 SECTION:=lang
32 CATEGORY:=Languages
33 SUBMENU:=Python
34 TITLE:=Cython compiler for writing C extensions
35 URL:=https://cython.org/
36 DEPENDS:=+python3
37 BUILDONLY:=1
38 endef
39
40 define Package/python3-cython/description
41 Cython is a language that makes writing C extensions for Python as easy
42 as Python itself. Cython is based on Pyrex, but supports more cutting
43 edge functionality and optimizations.
44
45 The Cython language is very close to the Python language, but Cython
46 additionally supports calling C functions and declaring C types on
47 variables and class attributes. This allows the compiler to generate
48 very efficient C code from Cython code.
49
50 This makes Cython the ideal language for wrapping external C libraries,
51 and for fast C modules that speed up the execution of Python code.
52 endef
53
54 $(eval $(call Py3Package,python3-cython))
55 $(eval $(call BuildPackage,python3-cython))
56 $(eval $(call BuildPackage,python3-cython-src))
57 $(eval $(call HostBuild))