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.

51 lines
1.3 KiB

  1. #
  2. # Copyright (C) 2007-2017 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-simplejson
  9. PKG_VERSION:=3.17.0
  10. PKG_RELEASE:=1
  11. PKG_LICENSE:=MIT
  12. PKG_CPE_ID:=cpe:/a:simplejson_project:simplejson
  13. PYPI_NAME:=simplejson
  14. PKG_HASH:=2b4b2b738b3b99819a17feaf118265d0753d5536049ea570b3c43b51c4701e81
  15. include ../pypi.mk
  16. include $(INCLUDE_DIR)/package.mk
  17. include ../python3-package.mk
  18. define Package/python-simplejson/Default
  19. SUBMENU:=Python
  20. SECTION:=lang
  21. CATEGORY:=Languages
  22. MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
  23. URL:=https://simplejson.readthedocs.org/
  24. endef
  25. define Package/python3-simplejson
  26. $(call Package/python-simplejson/Default)
  27. TITLE:=Simple, fast, extensible JSON encoder/decoder for Python3
  28. DEPENDS:=+PACKAGE_python3-simplejson:python3-light +PACKAGE_python3-simplejson:python3-decimal
  29. VARIANT:=python3
  30. endef
  31. define Package/python3-simplejson/description
  32. Simple, fast, extensible JSON encoder/decoder for Python
  33. .
  34. (Variant for Python3)
  35. endef
  36. define Py3Package/python3-simplejson/filespec
  37. +|$(PYTHON3_PKG_DIR)
  38. -|$(PYTHON3_PKG_DIR)/simplejson/tests
  39. endef
  40. $(eval $(call Py3Package,python3-simplejson))
  41. $(eval $(call BuildPackage,python3-simplejson))
  42. $(eval $(call BuildPackage,python3-simplejson-src))