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.

67 lines
1.9 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.3.0
  8. PKG_RELEASE:=1
  9. PKG_MAINTAINER:=Eneas U de Queiroz <cotequeiroz@gmail.com>
  10. PKG_LICENSE:=ISC
  11. PKG_LICENSE_FILES:=LICENSE
  12. PYPI_NAME:=requests-oauthlib
  13. PKG_HASH:=b4261601a71fd721a8bd6d7aa1cc1d6a8a93b4a9f5e96626f8e4d91e8beeaa6a
  14. include ../pypi.mk
  15. include $(INCLUDE_DIR)/package.mk
  16. include ../python-package.mk
  17. include ../python3-package.mk
  18. define Package/python-requests-oauthlib/Default
  19. SUBMENU:=Python
  20. SECTION:=lang
  21. CATEGORY:=Languages
  22. TITLE:=OAuthlib auth for Requests
  23. URL:=https://github.com/requests/requests-oauthlib
  24. endef
  25. define Package/python-requests-oauthlib
  26. $(call Package/python-requests-oauthlib/Default)
  27. DEPENDS:= \
  28. +PACKAGE_python-requests-oauthlib:python \
  29. +PACKAGE_python-requests-oauthlib:python-oauthlib \
  30. +PACKAGE_python-requests-oauthlib:python-requests
  31. VARIANT:=python
  32. endef
  33. define Package/python3-requests-oauthlib
  34. $(call Package/python-requests-oauthlib/Default)
  35. DEPENDS:= \
  36. +PACKAGE_python3-requests-oauthlib:python3 \
  37. +PACKAGE_python3-requests-oauthlib:python3-oauthlib \
  38. +PACKAGE_python3-requests-oauthlib:python3-requests
  39. VARIANT:=python3
  40. endef
  41. define Package/python-requests-oauthlib/description
  42. This python package provides first-class OAuth library support
  43. for Requests.
  44. endef
  45. define Package/python3-requests-oauthlib/description
  46. $(call Package/python-requests-oauthlib/description)
  47. .
  48. (Variant for Python3)
  49. endef
  50. $(eval $(call PyPackage,python-requests-oauthlib))
  51. $(eval $(call BuildPackage,python-requests-oauthlib))
  52. $(eval $(call BuildPackage,python-requests-oauthlib-src))
  53. $(eval $(call Py3Package,python3-requests-oauthlib))
  54. $(eval $(call BuildPackage,python3-requests-oauthlib))
  55. $(eval $(call BuildPackage,python3-requests-oauthlib-src))