mirror of
https://github.com/openwrt/packages.git
synced 2025-12-19 00:51:19 +00:00
python-packages: Clean up Makefiles
This removes: * Python 3 variants (VARIANT:=python3) * "for Python3" from package titles * Package selection condition from package dependencies, e.g. +PACKAGE_python3-six:python3-light replaced with +python3-light * "Default" package information sections, e.g. Package/python-six/Default removed and package details merged into Package/python3-six * "(Variant for Python3)" from package descriptions Signed-off-by: Jeffery To <jeffery.to@gmail.com>
This commit is contained in:
@@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=python-cryptodomex
|
||||
PKG_VERSION:=3.9.7
|
||||
PKG_RELEASE:=1
|
||||
PKG_RELEASE:=2
|
||||
|
||||
PYPI_NAME:=pycryptodomex
|
||||
PKG_HASH:=50163324834edd0c9ce3e4512ded3e221c969086e10fdd5d3fdcaadac5e24a78
|
||||
@@ -23,26 +23,18 @@ PYTHON3_PKG_SETUP_ARGS:=
|
||||
PYTHON3_PKG_SETUP_VARS:= \
|
||||
CONFIG_BIG_ENDIAN="$(CONFIG_BIG_ENDIAN)"
|
||||
|
||||
define Package/python-cryptodomex/Default
|
||||
define Package/python3-cryptodomex
|
||||
SECTION:=lang-python
|
||||
CATEGORY:=Languages
|
||||
SUBMENU:=Python
|
||||
TITLE:=A self-contained cryptographic library for Python
|
||||
URL:=https://www.pycryptodome.org/
|
||||
DEPENDS:=+libgmp
|
||||
endef
|
||||
|
||||
define Package/python3-cryptodomex
|
||||
$(call Package/python-cryptodomex/Default)
|
||||
DEPENDS+=+PACKAGE_python3-cryptodomex:python3
|
||||
VARIANT:=python3
|
||||
DEPENDS:=+libgmp +python3
|
||||
endef
|
||||
|
||||
define Package/python3-cryptodomex/description
|
||||
PyCryptodome is a self-contained Python package of low-level
|
||||
cryptographic primitives.
|
||||
.
|
||||
(Variant for Python3)
|
||||
endef
|
||||
|
||||
$(eval $(call Py3Package,python3-cryptodomex))
|
||||
|
||||
Reference in New Issue
Block a user