summaryrefslogtreecommitdiff
path: root/lang/python/pyjwt
diff options
context:
space:
mode:
authorEneas U de Queiroz <cote2004-github@yahoo.com>2018-12-04 08:02:08 -0200
committerEneas U de Queiroz <cote2004-github@yahoo.com>2018-12-05 08:33:29 -0200
commitacca39d00e162a20cd0a963102a9feb50c34cc33 (patch)
tree388406d3cd2f7cb05ef94d43596c019ca4766ee3 /lang/python/pyjwt
parentae102f4ef89abbce3a150368007e245a6b9a57cc (diff)
pyjwt: Bump to version 1.7.0, add ptyhon3
Version 1.7.0 brings compatibility with python 3.7. As a result of building a python3 version, the python2 package name was changed from pyjwt to python-pyjwt. Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
Diffstat (limited to 'lang/python/pyjwt')
-rw-r--r--lang/python/pyjwt/Makefile46
1 files changed, 30 insertions, 16 deletions
diff --git a/lang/python/pyjwt/Makefile b/lang/python/pyjwt/Makefile
index d2f7f4182..e265979e0 100644
--- a/lang/python/pyjwt/Makefile
+++ b/lang/python/pyjwt/Makefile
@@ -8,41 +8,55 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=pyjwt
-PKG_VERSION:=1.6.4
+PKG_VERSION:=1.7.0
PKG_RELEASE:=1
PKG_LICENSE:=MIT
PKG_SOURCE:=PyJWT-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/00/5e/b358c9bb24421e6155799d995b4aa3aa3307ffc7ecae4ad9d29fd7e07a73
-PKG_HASH:=4ee413b357d53fd3fb44704577afac88e72e878716116270d722723d65b42176
-PKG_BUILD_DIR:=$(BUILD_DIR)/PyJWT-$(PKG_VERSION)
+PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/P/PyJWT
+PKG_HASH:=ddec8409c57e9d371c6006e388f91daf3b0b43bdf9fcbf99451fb7cf5ce0a86d
+PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-PyJWT-$(PKG_VERSION)
+PKG_UNPACK=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
include $(INCLUDE_DIR)/package.mk
include ../python-package.mk
+include ../python3-package.mk
-define Package/pyjwt
+define Package/python-pyjwt/Default
SUBMENU:=Python
SECTION:=lang
CATEGORY:=Languages
MAINTAINER:=Eneas U de Queiroz <cote2004-github@yahoo.com>
TITLE:=JSON Web Token implementation in Python
URL:=http://github.com/jpadilla/pyjwt
- DEPENDS:=+python
endef
-define Package/pyjwt/description
- A Python implementation of RFC 7519.
+define Package/python-pyjwt
+ $(call Package/python-pyjwt/Default)
+ DEPENDS:=+PACKAGE_python-pyjwt:python
+ VARIANT:=python
endef
-define Build/Compile
- $(call Build/Compile/PyMod,,install --prefix=/usr --root=$(PKG_INSTALL_DIR))
+define Package/python3-pyjwt
+ $(call Package/python-pyjwt/Default)
+ DEPENDS:=+PACKAGE_python3-pyjwt:python3
+ VARIANT:=python3
endef
-define Package/pyjwt/install
- $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
- $(CP) \
- $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
- $(1)$(PYTHON_PKG_DIR)
+define Package/python-pyjwt/description
+ A Python implementation of RFC 7519.
endef
-$(eval $(call BuildPackage,pyjwt))
+define Package/python3-pyjwt/description
+$(call Package/python-pyjwt/description)
+.
+(Variant for Python3)
+endef
+
+$(eval $(call PyPackage,python-pyjwt))
+$(eval $(call BuildPackage,python-pyjwt))
+$(eval $(call BuildPackage,python-pyjwt-src))
+
+$(eval $(call Py3Package,python3-pyjwt))
+$(eval $(call BuildPackage,python3-pyjwt))
+$(eval $(call BuildPackage,python3-pyjwt-src))