Browse Source

python-jmespath: Add new package

Signed-off-by: Daniel Danzberger <daniel@dd-wrt.com>
lilik-openwrt-22.03
Daniel Danzberger 6 years ago
parent
commit
423bb29d78
1 changed files with 58 additions and 0 deletions
  1. +58
    -0
      lang/python/python-jmespath/Makefile

+ 58
- 0
lang/python/python-jmespath/Makefile View File

@ -0,0 +1,58 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=jmespath
PKG_VERSION:=0.9.3
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/j/jmespath
PKG_HASH:=6a81d4c9aa62caf061cb517b4d9ad1dd300374cd4706997aff9cd6aedd61fc64
PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-jmespath-$(PKG_VERSION)
PKG_MAINTAINER:=Daniel Danzberger <daniel@dd-wrt.com>
PKG_LICENSE:=MIT
include $(INCLUDE_DIR)/package.mk
include ../python-package.mk
include ../python3-package.mk
PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
define Package/python-jmespath/Default
SUBMENU:=Python
SECTION:=lang
CATEGORY:=Languages
TITLE:=jmespath
URL:=https://github.com/jmespath/jmespath.py
endef
define Package/python-jmespath
$(call Package/python-jmespath/Default)
DEPENDS:=+python
VARIANT:=python
endef
define Package/python3-jmespath
$(call Package/python-jmespath/Default)
DEPENDS:=+python3
VARIANT:=python3
endef
define Package/python-jmespath/description
JMESPath (pronounced “james path”) allows you to declaratively specify how to extract
elements from a JSON document.
endef
define Package/python3-jmespath/description
$(call Package/python-jmespath/description)
.
(Variant for Python3)
endef
$(eval $(call PyPackage,python-jmespath))
$(eval $(call BuildPackage,python-jmespath))
$(eval $(call BuildPackage,python-jmespath-src))
$(eval $(call Py3Package,python3-jmespath))
$(eval $(call BuildPackage,python3-jmespath))
$(eval $(call BuildPackage,python3-jmespath-src))

Loading…
Cancel
Save