You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

67 lines
1.8 KiB

  1. #
  2. # Copyright (C) 2015-2018 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=python-pyasn1-modules
  9. PKG_VERSION:=0.2.7
  10. PKG_RELEASE:=1
  11. PYPI_NAME:=pyasn1-modules
  12. PKG_HASH:=0c35a52e00b672f832e5846826f1fb7507907f7d52fba6faa9e3c4cbe874fe4b
  13. PKG_LICENSE:=BSD-2-Clause
  14. PKG_LICENSE_FILES:=LICENSE.txt
  15. PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>, Alexandru Ardelean <ardeleanalex@gmail.com>
  16. include ../pypi.mk
  17. include $(INCLUDE_DIR)/package.mk
  18. include ../python-package.mk
  19. include ../python3-package.mk
  20. define Package/python-pyasn1-modules/Default
  21. SECTION:=lang
  22. CATEGORY:=Languages
  23. SUBMENU:=Python
  24. TITLE:=Collection of ASN.1 modules
  25. URL:=https://github.com/etingof/pyasn1-modules
  26. endef
  27. define Package/python-pyasn1-modules
  28. $(call Package/python-pyasn1-modules/Default)
  29. DEPENDS:= \
  30. +PACKAGE_python-pyasn1-modules:python-light \
  31. +PACKAGE_python-pyasn1-modules:python-pyasn1
  32. VARIANT:=python
  33. endef
  34. define Package/python3-pyasn1-modules
  35. $(call Package/python-pyasn1-modules/Default)
  36. DEPENDS:= \
  37. +PACKAGE_python3-pyasn1-modules:python3-light \
  38. +PACKAGE_python3-pyasn1-modules:python3-pyasn1
  39. VARIANT:=python3
  40. endef
  41. define Package/python-pyasn1-modules/description
  42. This is a small but growing collection of ASN.1 data structures
  43. expressed in Python terms using pyasn1 data model.
  44. endef
  45. define Package/python3-pyasn1-modules/description
  46. $(call Package/python-pyasn1-modules/description)
  47. .
  48. (Variant for Python3).
  49. endef
  50. $(eval $(call PyPackage,python-pyasn1-modules))
  51. $(eval $(call BuildPackage,python-pyasn1-modules))
  52. $(eval $(call BuildPackage,python-pyasn1-modules-src))
  53. $(eval $(call Py3Package,python3-pyasn1-modules))
  54. $(eval $(call BuildPackage,python3-pyasn1-modules))
  55. $(eval $(call BuildPackage,python3-pyasn1-modules-src))