source "package/python-netifaces/Config.in"
source "package/python-nfc/Config.in"
source "package/python-protobuf/Config.in"
+source "package/python-pyasn/Config.in"
source "package/python-pygame/Config.in"
source "package/python-pyparsing/Config.in"
source "package/python-pyro/Config.in"
--- /dev/null
+config BR2_PACKAGE_PYTHON_PYASN
+ bool "python-pyasn"
+ depends on BR2_PACKAGE_PYTHON
+ depends on BR2_INSTALL_LIBSTDCPP
+ help
+ PyASN is a Python extension module that enables you to
+ perform very fast IP address to Autonomous System Number
+ lookups.
+
+ https://code.google.com/p/pyasn/
+
+comment "python-pyasn needs a toolchain w/ C++"
+ depends on !BR2_INSTALL_LIBSTDCPP
--- /dev/null
+################################################################################
+#
+# python-pyasn
+#
+################################################################################
+
+PYTHON_PYASN_VERSION = 1.2
+PYTHON_PYASN_SOURCE = PyASN-$(PYTHON_PYASN_VERSION).zip
+PYTHON_PYASN_SITE = https://pyasn.googlecode.com/files
+PYTHON_PYASN_LICENSE = LGPLv3+ (pyasn.cpp), GPLv2+ (libgds)
+PYTHON_PYASN_SETUP_TYPE = distutils
+
+define PYTHON_PYASN_EXTRACT_CMDS
+ unzip -d $(@D) $(DL_DIR)/$(PYTHON_PYASN_SOURCE)
+ mv $(@D)/PyASN-$(PYTHON_PYASN_VERSION)/* $(@D)
+ $(RM) -r $(@D)/PyASN-$(PYTHON_PYASN_VERSION)
+endef
+
+$(eval $(python-package))