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.

58 lines
1.6 KiB

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