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.

71 lines
2.1 KiB

  1. #
  2. # This is free software, licensed under the GNU General Public License v2.
  3. # See /LICENSE for more information.
  4. #
  5. include $(TOPDIR)/rules.mk
  6. PKG_NAME:=python-requests-oauthlib
  7. PKG_VERSION:=1.2.0
  8. PKG_RELEASE:=2
  9. PKG_MAINTAINER:=Eneas U de Queiroz <cote2004-github@yahoo.com>
  10. PKG_LICENSE:=ISC
  11. PKG_LICENSE_FILES:=LICENSE
  12. PKG_SOURCE:=requests-oauthlib-$(PKG_VERSION).tar.gz
  13. PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/r/requests-oauthlib
  14. PKG_HASH:=bd6533330e8748e94bf0b214775fed487d309b8b8fe823dc45641ebcd9a32f57
  15. PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-requests-oauthlib-$(PKG_VERSION)
  16. include $(INCLUDE_DIR)/package.mk
  17. include ../python-package.mk
  18. include ../python3-package.mk
  19. PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
  20. define Package/python-requests-oauthlib/Default
  21. SUBMENU:=Python
  22. SECTION:=lang
  23. CATEGORY:=Languages
  24. TITLE:=OAuthlib auth for Requests
  25. URL:=https://github.com/requests/requests-oauthlib
  26. endef
  27. define Package/python-requests-oauthlib
  28. $(call Package/python-requests-oauthlib/Default)
  29. DEPENDS:= \
  30. +PACKAGE_python-requests-oauthlib:python \
  31. +PACKAGE_python-requests-oauthlib:python-oauthlib \
  32. +PACKAGE_python-requests-oauthlib:python-requests
  33. VARIANT:=python
  34. endef
  35. define Package/python3-requests-oauthlib
  36. $(call Package/python-requests-oauthlib/Default)
  37. DEPENDS:= \
  38. +PACKAGE_python3-requests-oauthlib:python3 \
  39. +PACKAGE_python3-requests-oauthlib:python3-oauthlib \
  40. +PACKAGE_python3-requests-oauthlib:python3-requests
  41. VARIANT:=python3
  42. endef
  43. define Package/python-requests-oauthlib/description
  44. This python package provides first-class OAuth library support
  45. for Requests.
  46. endef
  47. define Package/python3-requests-oauthlib/description
  48. $(call Package/python-requests-oauthlib/description)
  49. .
  50. (Variant for Python3)
  51. endef
  52. $(eval $(call PyPackage,python-requests-oauthlib))
  53. $(eval $(call BuildPackage,python-requests-oauthlib))
  54. $(eval $(call BuildPackage,python-requests-oauthlib-src))
  55. $(eval $(call Py3Package,python3-requests-oauthlib))
  56. $(eval $(call BuildPackage,python3-requests-oauthlib))
  57. $(eval $(call BuildPackage,python3-requests-oauthlib-src))