This commit is contained in:
TriForceX
2021-03-13 22:13:38 -03:00
parent c77595adbd
commit b3ecc6e32d
7043 changed files with 119377 additions and 73694 deletions

View File

@@ -0,0 +1,7 @@
config BR2_PACKAGE_PYTHON_AENUM
bool "python-aenum"
help
Advanced Enumerations (compatible with Python's stdlib Enum),
NamedTuples, and NamedConstants.
https://pypi.org/project/aenum

View File

@@ -0,0 +1,4 @@
# sha256 from https://pypi.org/pypi/aenum/json
sha256 a4334cabf47c167d44ab5a6198837b80deec5d5bad1b5cf70c966c3a330260e8 aenum-2.2.3.tar.gz
# locally calculated
sha256 0db837e38002017b352666c83c8d3216ee5b9b2229375eb2cf4487f8c24e1f8c aenum/LICENSE

View File

@@ -0,0 +1,23 @@
################################################################################
#
# python-aenum
#
################################################################################
PYTHON_AENUM_VERSION = 2.2.3
PYTHON_AENUM_SOURCE = aenum-$(PYTHON_AENUM_VERSION).tar.gz
PYTHON_AENUM_SITE = https://files.pythonhosted.org/packages/6f/6a/8ed729e0add885d7a559ebb06133029b1f8c4bd66cbf1bdee1ec969fb310
PYTHON_AENUM_SETUP_TYPE = setuptools
PYTHON_AENUM_LICENSE = BSD-3-Clause
PYTHON_AENUM_LICENSE_FILES = aenum/LICENSE
ifeq ($(BR2_PACKAGE_PYTHON),y)
# only needed/valid for python 3.x
define PYTHON_AENUM_RM_PY3_FILE
rm -f $(TARGET_DIR)/usr/lib/python*/site-packages/aenum/test_v3.py
endef
PYTHON_AENUM_POST_INSTALL_TARGET_HOOKS += PYTHON_AENUM_RM_PY3_FILE
endif
$(eval $(python-package))