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.

55 lines
1.4 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=jmespath
  3. PKG_VERSION:=0.9.3
  4. PKG_RELEASE:=1
  5. PYPI_NAME:=$(PKG_NAME)
  6. PKG_HASH:=6a81d4c9aa62caf061cb517b4d9ad1dd300374cd4706997aff9cd6aedd61fc64
  7. PKG_MAINTAINER:=Daniel Danzberger <daniel@dd-wrt.com>
  8. PKG_LICENSE:=MIT
  9. include ../pypi.mk
  10. include $(INCLUDE_DIR)/package.mk
  11. include ../python-package.mk
  12. include ../python3-package.mk
  13. define Package/python-jmespath/Default
  14. SUBMENU:=Python
  15. SECTION:=lang
  16. CATEGORY:=Languages
  17. TITLE:=jmespath
  18. URL:=https://github.com/jmespath/jmespath.py
  19. endef
  20. define Package/python-jmespath
  21. $(call Package/python-jmespath/Default)
  22. DEPENDS:=+PACKAGE_python-jmespath:python
  23. VARIANT:=python
  24. endef
  25. define Package/python3-jmespath
  26. $(call Package/python-jmespath/Default)
  27. DEPENDS:=+PACKAGE_python3-jmespath:python3
  28. VARIANT:=python3
  29. endef
  30. define Package/python-jmespath/description
  31. JMESPath (pronounced “james path”) allows you to declaratively specify how to extract
  32. elements from a JSON document.
  33. endef
  34. define Package/python3-jmespath/description
  35. $(call Package/python-jmespath/description)
  36. .
  37. (Variant for Python3)
  38. endef
  39. $(eval $(call PyPackage,python-jmespath))
  40. $(eval $(call BuildPackage,python-jmespath))
  41. $(eval $(call BuildPackage,python-jmespath-src))
  42. $(eval $(call Py3Package,python3-jmespath))
  43. $(eval $(call BuildPackage,python3-jmespath))
  44. $(eval $(call BuildPackage,python3-jmespath-src))