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.

62 lines
1.6 KiB

  1. #
  2. # Copyright (C) 2007-2016 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:=pyjwt
  9. PKG_VERSION:=1.7.0
  10. PKG_RELEASE:=1
  11. PKG_LICENSE:=MIT
  12. PKG_SOURCE:=PyJWT-$(PKG_VERSION).tar.gz
  13. PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/P/PyJWT
  14. PKG_HASH:=ddec8409c57e9d371c6006e388f91daf3b0b43bdf9fcbf99451fb7cf5ce0a86d
  15. PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-PyJWT-$(PKG_VERSION)
  16. PKG_UNPACK=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
  17. include $(INCLUDE_DIR)/package.mk
  18. include ../python-package.mk
  19. include ../python3-package.mk
  20. define Package/python-pyjwt/Default
  21. SUBMENU:=Python
  22. SECTION:=lang
  23. CATEGORY:=Languages
  24. MAINTAINER:=Eneas U de Queiroz <cote2004-github@yahoo.com>
  25. TITLE:=JSON Web Token implementation in Python
  26. URL:=http://github.com/jpadilla/pyjwt
  27. endef
  28. define Package/python-pyjwt
  29. $(call Package/python-pyjwt/Default)
  30. DEPENDS:=+PACKAGE_python-pyjwt:python
  31. VARIANT:=python
  32. endef
  33. define Package/python3-pyjwt
  34. $(call Package/python-pyjwt/Default)
  35. DEPENDS:=+PACKAGE_python3-pyjwt:python3
  36. VARIANT:=python3
  37. endef
  38. define Package/python-pyjwt/description
  39. A Python implementation of RFC 7519.
  40. endef
  41. define Package/python3-pyjwt/description
  42. $(call Package/python-pyjwt/description)
  43. .
  44. (Variant for Python3)
  45. endef
  46. $(eval $(call PyPackage,python-pyjwt))
  47. $(eval $(call BuildPackage,python-pyjwt))
  48. $(eval $(call BuildPackage,python-pyjwt-src))
  49. $(eval $(call Py3Package,python3-pyjwt))
  50. $(eval $(call BuildPackage,python3-pyjwt))
  51. $(eval $(call BuildPackage,python3-pyjwt-src))