blob: 6aa371e699a61f3b119d205957b4db7c27dcac66 [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001#
2# Copyright (C) 2015-2016, 2018-2020, 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
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=python-gmpy2
11PKG_VERSION:=2.1.5
12PKG_RELEASE:=1
13
14PYPI_NAME:=gmpy2
15PKG_HASH:=bc297f1fd8c377ae67a4f493fc0f926e5d1b157e5c342e30a4d84dc7b9f95d96
16
17PKG_LICENSE:=LGPL-3.0-or-later
18PKG_LICENSE_FILES:=COPYING.LESSER
19PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
20
21include ../pypi.mk
22include $(INCLUDE_DIR)/package.mk
23include ../python3-package.mk
24
25define Package/python3-gmpy2
26 SECTION:=lang
27 CATEGORY:=Languages
28 SUBMENU:=Python
29 TITLE:=GMP/MPIR, MPFR, and MPC interface
30 URL:=https://github.com/aleaxit/gmpy
31 DEPENDS:=+libgmp +libmpc +libmpfr +python3-light
32endef
33
34define Package/python3-gmpy2/description
35gmpy2 is a C-coded Python extension module that supports multiple-precision
36arithmetic. gmpy2 is the successor to the original gmpy module. The gmpy module
37only supported the GMP multiple-precision library. gmpy2 adds support for the
38MPFR (correctly rounded real floating-point arithmetic) and MPC (correctly
39rounded complex floating-point arithmetic) libraries. gmpy2 also updates the
40API and naming conventions to be more consistent and support the additional
41functionality.
42endef
43
44$(eval $(call Py3Package,python3-gmpy2))
45$(eval $(call BuildPackage,python3-gmpy2))
46$(eval $(call BuildPackage,python3-gmpy2-src))